Ask_OK_Cancel

Displays a message in a dialog box with an OK and Cancel 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 Cancel Default

Indicates whether the Cancel button is the default button.

Format

Ask_OK_Cancel ("Message Text", "Title Text", Make Cancel Default)

Return Value

Returns a Boolean. TRUE if the user selects OK, returns FALSE if the user selects Cancel.

Example

Script(Ask_OK_Cancel_Test)
Boolean(bResult)
Activate(From_Menu)
bResult = Ask_OK_Cancel("OK for TRUE, Cancel for FALSE", "Ask_OK_Cancel_Test", FALSE)
If(bResult)
Message("Selected: OK", 5)
Else
Message("Selected: Cancel", 5)
End_If
Return

See Also

Ask_Yes_No, 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

Privacy and Legal