InsertTaskStep Example

 

The following example will add a step as the second step of the task that displays a message box with the words ôThis is AutoMateÖ.ö and make it pop to the front.

 

Sub Main

 CurrentTask2.InsertTaskStep (2, ôMESSAGE: ô + Chr$(13) + ô This is AutoMateÖ. ô + Chr$(13) + ô,1ö

End Sub