ThreadName

(Engine-Level Function)

Description: Returns the name of a thread.
Returns: Text
Usage: Script Only.
Function Groups: Basic Module,  Software and Hardware
Related to: Thread | ThreadList | ThreadIdle
Format: ThreadName(Instance)
Parameters:  
Instance
Required. Any object value designating the thread for which the name is required.
Comments: This function returns the name of the thread in which Instance is executing.

Example:

If ! Valid(myThread);
[
  myThread = ThreadName(Self());
]