RxMessageBox
Function:
Syntax:
action = RxMessageBox(text, [title], [button], [icon])
text
The text of the message that appears
in the message box.
title
The
title of the message box. The default title is "Error".
The
style of buttons used with the message box. The allowed styles are:
OK
OKCANCEL
An OK button and a Cancel button.
CANCEL
ENTER
ENTERCANCEL
An Enter button and a Cancel button.
RETRYCANCEL
A Retry button and a Cancel button.
ABORTRETRYIGNORE
An Abort button, a Retry button and an Ignore button.
YESNO
A Yes button and
a No button.
YESNOCANCEL
A
Yes button, a No button and a Cancel button.
The
default button style is OK.
icon
The
style of icon displayed in the message box. The allowed styles are:
NONE
HAND
The hand icon is displayed.
QUESTION
A question mark icon is displayed.
EXCLAMATION
An exclamation mark icon is displayed.
ASTERISK
An asterisk icon is displayed.
INFORMATION
The information icon is displayed.
QUERY
The query icon is displayed.
WARNING
The warning icon is displayed.
ERROR
The error icon is displayed.
action
The button that was selected on the message
box. Possible values are:
- OK key
- Cancel key
- Abort key
- Retry key
- Ignore key
- Yes key
- No key
- Enter
Purpose:
Display a message box from a REXX program running
in an OS/2 session (that is, running in PMREXX or called from a Presentation
Manager* application).
Examples:
/* Give option to quit */
if RxMessageBox("Shall we continue",, "YesNo", "Query") = 7
Then Exit /* quit option given, exit */
[Back: REXX Utility Functions (RexxUtil)]
[Next: SysCls]