Returns system information about the thread.
GetThreadInfo (Dim InfoID as Integer)
InfoID
Information to be returned
Data
A variant containing the information to be returned.
Pass any of the LSI_ constants from the table below to GetThreadInfo to have it return the current value of that constant.
Code
|
Meaning
|
LSI_THREAD_LINE |
Current Line Number |
LSI_THREAD_PROC |
Name of current procedure |
LSI_THREAD_MODULE |
Name of current module |
LSI_THREAD_VERSION |
LotusScript version number |
LSI_THREAD_LANGUAGE |
(Human) language setting |
LSI_THREAD_COUNTRY |
Country or region setting |
LSI_THREAD_TICKS |
Get current clock ticks |
LSI_THREAD_TICKS_PER_SEC |
Get clock ticks per second (supported only on platforms that support parallel processing primitives) |
LSI_THREAD_PROCESS_ID |
Get current process ID (supported only on platforms that support parallel processing primitives) |
LSI_THREAD_TASK_ID |
Get current task ID (supported only on platforms that support parallel processing primitives) |
LSI_THREAD_CALLPROC |
Get the name of the calling procedure |
LSI_THREAD_CALLMODULE |
Get the name of the calling module |
The values of the constants are defined in LSPRVAL.LSS, which is automatically included through LSCONST.LSS.