A system variable called @TASK contains the name of the current task.  If there is no active task, @TASK is null.  @TASK can be checked in logic to determine if the kernel is executing a task.  This field is set by the kernel at the start of task execution and is cleared when the task is exited.  The value of @TASK cannot be modified.

@TASK is still null when the Logon Link to function is executing.

Comment on this topic

Topic ID: 540001