Parameters
Optional non-zero exit code. See non-zero example below.
Returns
None.
Remarks
Can be used with or without the optional non-zero exit code.
Example without the optional exit code
Run "C:\BlueZone\Bzmd.Exe /s2 /fsystem2.zmd"
Pause 14
ResultCode = EMConnect "A"
If ( ResultCode <> 0 ) Then
' stop script from executing
StopScript
End If
Example with a non-zero exit code
BeginDialog Dialog1, 0, 0, 201, 72, "Logoff Before Disconnect"
ButtonGroup ButtonPressed
OkButton 36, 45, 50, 15
CancelButton 116, 45, 50, 15
Text 15, 10, 175, 25, "Please make sure you are logged out of the VM system
before disconnecting. Press Cancel to abort disconnect."
EndDialog
nRet = Dialog( Dialog1 )
If ( nRet = 0 ) Then
StopScript 1 'tells BlueZone to abort any disconnect or close
End If