Returns the index (0 based) of the current Task in its parent object.
[ lIndex = ] Object.Index
The Index property syntax has the following parts:
Name |
Type |
Description |
Object |
ATask |
ATask object |
lIndex |
Long |
An integer specifying the index of the current Task in its parent object. |
The task index is 0 based index.
The following example uses the Task statement with the index of the next task to skip the remaining tests in this task and start executing the next task. This is useful after an error that makes it meaningless to continue with the tests in this task.
Task Task.Index+1