DeleteTaskStep Example

 

The following example deletes the second step of the currently running task (note that, since AutoMateÖ uses a zero based index for steps, step two in the step builder is actually index 1 in the scripting language).

 

Sub Main

 CurrentTask2.DeleteTaskStep (2)

 MsgBox ôStep 2 deleted.ö

End Sub