ebYesNoCancel (constant)

Description

Used with the MsgBox statement and function.

Comments

This constant is equal to 3.

Example

This example displays a dialog box with Yes, No, and Cancel buttons.

Sub Main()
  rc% = MsgBox("Format drive C:?",ebYesNoCancel)
  If rc% = ebYes Then
    MsgBox "The user chose Yes."
  End If
End Sub

See Also

MsgBox (function); MsgBox (statement).

More information

E