GetThreadId Function

Action

Returns the ID of the current thread.

Syntax

iThreadID = GetThreadId()
Variable Description
iThreadID The returned ID of the current thread. INTEGER.

Notes

The main thread of a script has an ID of 1. All other thread IDs are unique and begin at 2.

Example

iClient1_ID = GetThreadId()