Ask_Yes_No_Cancel

Displays a message in a dialog box with a Yes, No, and Cancel button and waits until the user selects a button.

Parameters

Message Text

The message displayed in the message box.

Title Text

The title displayed on 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_Cancel ("Message Text", "Title Text", Make No Default)

Return Value

Returns 2 if the user presses Yes, 1 if the user presses No, and 0 if the user presses Cancel.

Example

Script(Ask_Yes_No_Cancel_Test)
Number(nResult)
Activate(From_Menu)
nResult = Ask_Yes_No_Cancel("Select Yes, No, or Cancel", "Ask_Yes_No_Cancel", FALSE)
If(Number_Equal(nResult, 0))
Message("Cancel", 3)
Else
If(Number_Equal(nResult, 1))
Message("No", 3)
Else
Message("Yes", 3)
End_If
End_If
Return

See Also

Ask_Number, Ask_OK, Ask_OK_Cancel, Ask_Yes_No, Ask_String, Ask_String_Password, Ask_String_Uppercase, Ask_String_Lowercase, Message

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal