UNIQUE
From STX Wiki
Jump to navigationJump to search
UNIQUE
var := UNIQUE dir ext mode digits [ offset ]
-> var =: 'uniquefilename' without directory and extension or empty string
Generate a unique filename for the specified directory (use '*' for the current working directory). If a directory is specified, it is made the current working directory.
- dir
- The name of directory or '
*
'.
- ext
- The file extension.
- mode
0
= count (decimal),1
= random numbers (hex).
- digits
- The number of filename digits.
- offset
- The first index (for count mode only).