|
<< Click to Display Table of Contents >> Navigation: Support for TN3270 Plus™ macros > MsgBox |
Description
Displays a message in a dialog box and waits for the user to click the OK or Cancel button.
Click the OK button to continue script processing. Click the Cancel button to cancel the script.
Syntax
MsgBox(prompt[[, icon][, title]])
or
MsgBox prompt[[, icon][, title]]
Parameters
Part |
Type |
Description |
prompt |
String |
String expression displayed as the message in the dialog box. 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, you can separate the lines using a carriage return character (Chr(13)), a linefeed character (Chr(10)), or carriage return–linefeed character combination (Chr(13) & Chr(10)) between each line. You can even use the system defined constants like vbCR, vbLf, vbCrLf… |
icon |
String |
Optional. Message box icon id. ICONEXCLAMATION is the default |
title |
String |
Optional. String expression displayed in the title bar of the dialog box. If you omit title, the application name is displayed in the title bar. |
MsgBox Constants
The following constants are used with the MsgBox function to identify what icon is displayed.
Constant |
Description |
|---|---|
ICONNONE |
No icon is displayed. |
ICONSTOP |
Display Stop (white X in a circle with a red background.) icon. |
ICONQUESTION |
Display Warning Query icon. |
ICONEXCLAMATION |
Display Warning Message icon. |
ICONINFORMATION |
Display Information Message icon. |