AppendTaskStep Method

CurrentTask2 Example

 

Adds a new step to the end of existing task.

 

Declaration

procedure AppendTaskStep(Action As Variant)

 

Parameters

Action

 The step text to be added to the end of the existing task.

 

Description

The AppendTaskStep adds the text Action to the end of the currently executing task. The Action parameter must be a properly formatted step as it would appear in the Step Builder, and consist of a command and its associated parameters.

 

It is the responsibility of the method caller to ensure the Action parameter is properly formatted. Adding an invalid step to an existing task could cause it to fail on subsequent calls.

 

New steps added to the task do not take effect until next time the task is run.