GetTaskName Procedure

Returns the name of the current Task.

Syntax

[ sTask = ] GetTaskName( )

The GetTaskName procedure syntax has the following parts:

 

Name

Type

Description

sTask

BString

Current Task name

Comments

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.

Example

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

}

See Also

GetProgramTasks, GetTaskNum, GetTestName, GetTestNum