SYS_ACT_CLIENT, SYS_USER_CLIENT

Use the SYS_ACT_CLIENT_ script function to return the number of the current client. The current client is the client in which the task that calls the script is running. For more information, see Clients.

Syntax

SYS_ACT_CLIENT ()
SYS_USER_CLIENT ()

Return Code

The script function returns the 4-digit Client number, with leading zeros.

Example

The task that contains the following script runs on Client 0003. The script stores the Client number in a script variable, and prints the phrase Current client: 0003 in the activation report of the task.

:SET &CLIENT# = SYS_ACT_CLIENT() 
:
PRINT "Current client: &CLIENT#"

See also:

seealso

Script Elements for System Conditions and Settings