Execution.ForegroundThreadIndex
- Updated2024-10-09
- 1 minute(s) read
Execution.ForegroundThreadIndex
Syntax
Execution.ForegroundThreadIndex
Data Type
Purpose
Specifies the foreground thread of the execution.
Remarks
The foreground thread is the thread the sequence editor or user interface displays as active for the execution. You specify the thread with a zero-based index into the list of threads in the execution.
Do not access this property when handling a UIMsg_Trace message. TestStand allows non-foreground threads to run and complete while TestStand handles trace events. As a result, getting and setting thread indexes is unreliable during trace event handling. Use the Execution.ForegroundThread method instead.