okcancel
TEXT

The okcancel statement displays a modal alert window with a message and two buttons: Ok and Cancel.


Parameters

This statement has one parameter:

text – is the message to display.


Description

This statement displays a modal alert window with a message and two buttons: Ok and Cancel. (Ok is the default.) Afterwards, the name of the button that was clicked will be in the clipboard.

okcancel "Do you want to continue?"
if clipboard() = "Cancel"
    stop
endif
...
...
...

Note: This statement is retained for compatibility with legacy databases. For new applications, the alertokcancel statement, which does not disturb the clipboard, is recommended.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0 but does not have 255 character limit, and automatically grows in height to accomodate the specified text.