TaskState Method
Description
Returns the status of a task.
Syntax
Function TaskState (TaskNumber As Integer) As SpelTaskState
Function TaskState (TaskName As String) As SpelTaskState
Parameters
- TaskNumber
Task number for which to return the execution status. - TaskName
A string expression indicating the task name.
Return Value
A SpelTaskState value.
See Also
TasksExecuting Method, Xqt Method
TaskState Example
VB Example:
Dim taskState As SpelTaskState
taskState = m_spel.TaskState(2)
C# Example:
SpelTaskState taskState;
taskState = m_spel.TaskState(2);