ADXUID |
adxuid returns a unique identifier for each user whether of adonix or of an application.
adxuid (expr_n)
|
Element |
Description |
Restrictions |
|
expr_n |
numerical expression |
either 1 or 2 |
# Creation of a single temporary user file[L]LEFIC = filpath("tmp",num$(adxuid(2)),0)
Openo [L]LEFIC
adxuid is a function returning a unique identifier for each Adonix user, if the parameter is 1 and a unique identifier for each user of the current application if the parameter is 2. The result is an Integer type.
When in client-server mode, the adxpid function may not be used to provide a unique identifier for each user (whether of Adonix or of the application) since there is no way of prevent these processes – Unix or DOS – having the same process number first, since they may be started on different machines. With adxuid a unique identifier is ensured for a transfer [sic].
adxuid(2) is used internally for locking symbols recorded in the table whose name is given by [S]adxtlk.
|
Error |
Description |
|
ERMODE (10) : |
expr_n is not a numerical type. |
|
ERDOM (50 |
expr_n is smaller than 1 or larger than 2. |
|
|