Skip to main content

GetThreadInfo function (LotusScript Language)

Returns system information about the thread.

Syntax

GetThreadInfo (Dim InfoID as Integer)

Elements

InfoID

Information to be returned

Return values

Data

A variant containing the information to be returned.

Usage

Pass any of the LSI_ constants from the following table to GetThreadInfo to have it return the current value of that constant.

CodeMeaning
LSI_THREAD_LINECurrent® Line Number
LSI_THREAD_PROCName of current procedure
LSI_THREAD_MODULEName of current module
LSI_THREAD_VERSIONLotusScript® version number
LSI_THREAD_LANGUAGE(Human) language setting
LSI_THREAD_COUNTRYCountry or region setting
LSI_THREAD_TICKSGet current clock ticks
LSI_THREAD_TICKS_PER_SECGet clock ticks per second (supported only on platforms that support parallel processing primitives)
LSI_THREAD_PROCESS_IDGet current process ID (supported only on platforms that support parallel processing primitives)
LSI_THREAD_TASK_IDGet current task ID (supported only on platforms that support parallel processing primitives)
LSI_THREAD_CALLPROCGet the name of the calling procedure
LSI_THREAD_CALLMODULEGet the name of the calling module

The values of the constants are defined in lsprcval.lss, which is automatically included through lsconst.lss.