DisableThisTask Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “Flow Control” group, “Disable This Task.” The method disables the currently running task.

 

Declaration

function DisableThisTask () As Integer

 

Parameters

 None

 

Description

Use the DisableThisTask method to disable the currently running task. The task becomes disabled once the script and any remaining steps are completed.


To stop the task immediately after the script is completed and abort any remaining steps, set CurrentTask2.Active to “0.”