Returns the parent Task of this Task.
[ 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. |
The topmost Task has a null value for this property.
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