Execution.GetThread

Syntax

Execution.GetThread( index)

Return Value

Thread

Purpose

Returns a Thread object for the thread that you identify by index.

Remarks

Do not call this method when handling a UIMsg_Trace message because TestStand allows non-foreground threads to run and complete while TestStand handles trace events. As a result, obtaining a thread by index is unreliable during trace event handling.

Parameters

index As Long

[In] Specifies the zero-based index of the list of threads in the execution.

See Also

Execution.ForegroundThread

Execution.ForegroundThreadIndex

Execution.NumThreads

PropertyObject

Thread

UIMessageCodes