Xojo.Threading.Thread.State
From Xojo Documentation
Read-Only Property (As ThreadStates )
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
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