MessageDialog
Function:
Shows a dialog with a user definable text, and one or more buttons. You can select any combination of buttons from the following list:
- Y – Yes
- N – No
- C – Cancel
- O – OK
- A – Yes to all
- R – Retry
The icon in the dialog can be controlled as well. You can select one type from the following list:
- E – Error
- W – Warning
- I – Information
- C – Confirm
The result variable contains the letter of the button that was clicked.
Syntax:
MessageDialog <Variable which will contain the result> "<DialogType>" "<Buttons>" "<The text>"
Example:
MessageDialog A "C" "YN" "Are you sure you want to connect?"
If A = "Y" then
Connect
Endif
; The Message command could be imitated with the following
MessageDialog A "I" "O" "This is not the Message command"
; Some feedback
MessageDialog A "W" "OYNR" "This is an unusual warning dialog"
MessageDialog B "I" "O" "You just pressed the %%A%% button"