System.Exit (method)

Syntax

System.Exit

Description

Exits the operating environment.

Example

This example asks whether the user would like to restart Windows after exiting.

Sub Main

  message$="Restart Windows on exit?",ebYesNo,"Exit Windows"

  button = MsgBox message$

  If button = ebYes Then System.Restart  'Yes button selected.

  If button = ebNo Then System.Exit   'No button selected.

End Sub

See Also

System.Restart (method).

More information

S