0.9b (c) 1995 Peter Childs
Function: RxMessageBox
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 A single OK button.
OKCANCEL An OK button and a Cancel button.
CANCEL A single Cancel button.
ENTER A single Enter button.
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 No icon is displayed.
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:
1 OK key
2 Cancel key
3 Abort key
4 Retry key
5 Ignore key
6 Yes key
7 No key
8 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 */
Inf-HTML End Run - Successful