Displays a message in a box with a Yes and No button and waits until the user selects a button.
Parameters
Message Text |
The message that the script displays in the message box. |
Title Text |
The message that the script displays in the title bar of the message box. |
Make No Default |
Indicates whether No is the default button. If this is FALSE, the Yes button is the default button. |
Format
Ask_Yes_No ("Message Text", "Title Text", TRUE)
Return Value
Returns a Boolean. TRUE if the user selects Yes, returns FALSE if the user selects No.
Example
Script(Ask_Yes_No_Test)
Boolean(bResult)
Activate(From_Menu)
bResult = Ask_Yes_No("Yes for TRUE, No for FALSE", "Ask_Yes_No_Test", FALSE)
If(bResult)
Message("Selected: Yes", 5)
Else
Message("Selected: No", 5)
End_If
Return
See Also
Ask_OK_Cancel, Ask_Yes_No_Cancel, Ask_OK, Ask_String, Ask_String_Password, Ask_String_Uppercase, Ask_String_Lowercase, Message, Ask_Number
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other