The UNIQUEKEY function returns a unique 16-byte character key.

NOTE: This function is only available in jBASE 4.1 and later






The UNIQUEKEY() function will generate a unique 16-byte character key on each call to the function. The key contains characters from the set A-Z a-z 0-9 + and / (base64) Based on the current UTC time and the process number, the key is unique on a single computer system providing that the system clock is not turned back.

If the system administrator adjusts the system clock backwards, then there is a slight possibility of generating duplicate keys during the period until the clock has caught back up to time that the adjustment was made.

Any process that continues to execute throughout this period will continue to produce unique keys. A process that starts up during this period and is given the process ID of a process that terminated during the period, may possibly generate a duplicate key until the period ends.