Returns the name of the current Task.
[ sTask = ] GetTaskName( )
The GetTaskName procedure syntax has the following parts:
Name |
Type |
Description |
sTask |
BString |
Current Task name |
This name is defined at the Task/Test Summary dialog. If no Task is currently running (for example, while ATEasy is executing OnInitProgram), an empty string is returned.
The following example disables the Log output on a Task named "Calibration UUT...".
OnInitTask()
{
If GetTaskName( ) = "Calibration UUT" then
Print "Calibrating UUT..."
SetLogOff()
Else
SetLogOn()
Endif
}