MessageBox Control
Paul Mansour edited this page Aug 13, 2021
·
2 revisions
The MessageBox control is a form control that displays a simple message and one or more buttons. It returns an integer indicating the selected button.
The default behavior is to display a single button labeled OK:
r←MessageBox.Run 'File saved.'
The number and caption of the buttons may be specified:
r←MessageBox.Run 'Do you want to save your changes?' ('Yes' 'No' 'Cancel)
The result r is the zero-origin index of the button selected, or -1 if the message box is dismissed by pressing Esc or clicking on the x.