For the purposes of PROMOTIC system, it is more usefull to use the method: Pm.MessageBox.
s = MsgBox(prompt[, buttons][, title][, helpfile, context])
|prompt||(String) String expression presented as the message in the window. The maximum length of prompt is approximately 1024 characters, depending on the width of the characters used. If prompt consists of more than one line, then you can separate the lines using the vbCr, vbLf or vbCrLf constants between each line.|
|buttons||[optional] (Integer) Numeric expression that is the sum of values specifying the number and type of buttons to show, the icon style to use, the identity of the default button, and the modality of the message box. If not set, then the default value for buttons is vbOKOnly.|
vbOKOnly - Display OK button only
vbOKCancel - Display OK and Cancel buttons
vbAbortRetryIgnore - Display ABORT, RETRY and IGNORE buttons
vbYesNoCancel - Display YES, NO and Cancel buttons
vbYesNo - Display YES and NO buttons
vbRetryCancel - Display RETRY and Cancel buttons
vbCritical - Display "Critical Message" icon
vbQuestion - Display "Warning Query" icon
vbExclamation - Display "Warning Message" icon
vbInformation - Display "Warning Message" icon
vbDefaultButton1 - 1st button is the default
vbDefaultButton2 - 2nd button is the default
vbDefaultButton3 - 3rd button is the default
vbDefaultButton4 - 4th button is the default
vbApplicationModal - Application modal mode. The user must respond to the message box before continuing work in the current application.
vbSystemModal - System modal mode. All applications are suspended until the user responds to the message box.
|title||[optional] (String) String expression presented in the title bar of the window. If not set, then the application name is placed in the title bar.|
|helpfile||[optional] (String) String expression that identifies the Help file to use to provide context-sensitive Help for the window. If set, then context parameter must also be provided.|
|context||[optional] (Integer) Numeric expression that identifies the Help context number assigned by the Help author to the appropriate Help topic. If set, then helpfile parameter must also be provided.|
If both helpfile and context are provided, then the user can press F1 to view the Help topic corresponding to the context.
If the window shows a Cancel button, then pressing the Esc key has the same effect as clicking Cancel.
If vbOK = MsgBox("Hello World!", vbOKCancel+vbInformation, "MsgBox Example") Then ...