Task Property (AProgram) |
Version 8 |
Returns the current program task object.
[ tsk= ] Object.Task
The Task property syntax has the following parts:
Name |
Type |
Description |
Object |
AProgram |
AProgram object |
tsk |
ATask |
The program current task object. |
The Task property is used to determine the current task of the specified program. The property is changed using the Run, Task and the Test statements or when ATEasy finishes to execute a task and start the next one. Use the Task variable instead if you need to check the current task of the current program.
The following statement abort all programs if the first uut failed after the third task:
if App.UutProgram(0).Task.Index>3 and App.UutProgram(0).Status>=FAIL then abort all