InsertTaskStep Method

CurrentTask2 Example

 

Inserts a new step before the position specified.

 

Declaration

procedure InsertTaskStep(Before As Integer,

 Action As Variant)

 

Parameters

Before

 The step number where the step is to be inserted.

 

Action

 The step text to be inserted.

 

Description

The InsertTaskStep method inserts the text Action at the position specified by Before. 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.