ebOK (constant)

Description

Returned by the MsgBox function when the OK button is chosen.

Comments

This constant is equal to 1.

Example

This example displays a dialog box that allows the user to cancel.

Sub Main()
  rc% = MsgBox("Are you sure you want to exit Windows?",ebOKCancel)
  If rc% = ebOK Then System.Exit
End Sub

See Also

MsgBox (function); MsgBox (statement).

More information

E