LOAD THREAD Command

Description:

This command loads the name of the thread on which the Script is currently executing, into a character variable.

Declare the character variable at 32 bytes long, using the CHARACTER*32 command. 32 bytes should be long enough to handle most thread names.

The thread name will be truncated as required to fill the target variable if you do not declare a value large enough to cope with the thread names.

Format:

 LOAD THREAD INTO variable

Parameter:

variable

A character variable into which the thread name is loaded.

Example:

 LOAD THREAD INTO Thread-Name

See also:

Miscellaneous Commands