Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The return values from Message_Box are defined in the insert record Message_Box_Equates. Each button (OK, CANCEL, YES, NO, ABORT, RETRY, IGNORE) returns a different value.

See also

Msg()

Example: Yes/No/Cancel, Default to 'No' Button

Code Block
declare function Message_Box
$insert Message_Box_Equates
retval = Message_Box( @window ,'Yes/No/Cancel, default to No',|
         'Please Confirm', MSG_BTN_YESNOCAN$ + MSG_DEFAULT2$)
if retval = MSG_RET_YES$ then
    *  user clicked "YES', so do processing, then display message
    retval = Message_Box (@window, 'Processing completed!', 'Done!', MSG_BTN_OK$)
end

 

 

Example: Message with Information Icon

...