How to Customize the Confirmation Message When Closing a Dirty Form
Learn how to customize the close message for a dirty form in a Desktop Application.
The following example code can be put on a form's CanExit event to replace the built-in confirmation message with a message of your own.
dim q as n q = ui_msg_box("Notice","Are you sure you want to exit from this form without saving your data?",UI_YES_NO_CANCEL) if q = ui_cancel_selected .or. q = ui_no_selected then cancel() else topparent.command("record_cancel") end if
Desktop Applications Only