Chapter 14 Multitasking Control Statements
14-5
STATUS (Function)
Function
Obtains the program status.
Format
STATUS (<Program name>)
Explanation
This statement stores the program status of the program designated in
<Program name> using an integer.
Value Status
1
Running Executing
2
Stopping Stopping in progress
3
Suspend Suspension in progress
4
Delay Delay in progress
5
Pending Currently pending
6
Step Stopped Step stoppage in progress
Related Terms
DELAY, HALT, HOLD, STOP
Example
DIM li1 As Integer
li1 = STATUS(samp1) ' Assigns the program status of samp1 to li1 using an
integer.
Notes
This statement cannot obtain the status of its own.
Comments to this Manuals