The following example stores the first step of the task into a variable called 擢irstStep and displays the result in a message box.
Sub Main
Dim FirstStep As Variant
FirstStep = CurrentTask.GetTaskStep (0)
MsgBox FirstStep
End Sub