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.

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 lsprcval.lss, which is automatically included through lsconst.lss.