AskYesNo

Prompts the user for a Yes or No answer.

Syntax:

AskYesNo ( title, question )

Parameters

(s) title: title of the question box.

(s) question: question to be put to the user.

Returns:

(i)  @YES or @NO, depending on the button pressed.

 

This function displays a message box with three pushbuttons - Yes, No, and Cancel.

Example:

q = AskYesNo('Testing', 'Please press "YES"')
If q == @YES Then Exit
Display(3, 'ERROR', 'I said press "YES"')

produces:

wila-k8_shg.gif

... and Then, If the user presses NO:

wila-k9_shg.gif

 

See Also:

AskLine, AskPassword, Dialog, Display, AskItemList, Message, Pause, AskFileText