Index Property (ATask)

Returns the index (0 based) of the current Task in its parent object.

Syntax

[ 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.

Comments

The task index is 0 based index.

Example

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

Applies to

ATask

See Also

Id, Number, Task