Task Property (ATask)

Returns the parent Task of this Task.

Syntax

[ pTask = ] Object.Task

The Task property syntax has the following parts:

 

Name

Type

Description

Object

ATask

ATask object

pTask

ATask

The parent Task of this Task or Nothing if the task does not belong to another task.

Comments

The topmost Task has a null value for this property.

Example

The following shows how to restart the parent of the current task, for example, after a major problem in this subsytem has been fixed:

print "Restarting task "; Task.Task.Name

! reset all tests in the parent task

Task.Task.Reset()

! restart execution at the beginning of the parent task

Task Task.Task

Applies to

ATask

See Also

Id, Index