Returns the current status of a thread.
IF ThreadState("Thread1") = threadSuspended THEN
ThreadResume("Thread1")
END
Syntax
<Result> = ThreadState(<Thread name>)
<Result>: Constant
Current status of thread: | |
threadRunning | The thread is running. |
threadStopRequested | A stop request has been made for this thread. |
threadSuspended | The thread is suspended. |
threadUnknown | The thread was not created or it was destroyed. |
<Thread name>: Character string
Name of thread whose status is requested. This name is given when running the thread (ThreadExecute).