Xojo.Threading.Thread.State

From Xojo Documentation

Read-Only Property (As ThreadStates )
ThreadStatesValue = aXojo.Threading.Thread.State

Supported for all project types and targets.

Indicates the state of the thread using the ThreadStates enumeration.

Sample Code

Check the state of a thread:

Var status As Text
Select Case state
Case Thread.Running
status = "Running"
Case Thread.Waiting
status = "Waiting"
Case Thread.Sleeping
status = "Waiting"
Case Thread.Suspended
status = "Suspended"
Case Thread.NotRunning
status = "Not running"
End Select