Description: This function returns the number of statements of a certain type pending.
Returns: Numeric
Usage: Script
Format: Pending(StatementType)
Parameters: StatementType { numeric } { required } { no default: }
Any numeric expression giving the type of statement for which to get the number pending as follows:
|
StatementType |
Pending type |
|
0 |
High priority statement |
|
1 |
Normal priority statement |
|
2 |
Timer |
|
3 |
Priority statement |
|
4 |
Logger queue length (logQsize in LogFile.cpp) |
Comments:
Example:
If 1 Next;
[
numPending = Pending(0);
]
This script finds the number of high priority statements pending at the time of execution and assigns the value to the variable numPending.
See Also: