ebYes (constant)

Description

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

Comments

This constant is equal to 6.

Example

This example queries the user for a response.

Sub Main()
  rc% = MsgBox("Overwrite file?",ebYesNoCancel)
  If rc% = ebYes Then
    MsgBox "You elected to overwrite the file."
  End If
End Sub

See Also

MsgBox (function); MsgBox (statement).

More information

E