MsgBox - display a dialog box

Return to Introduction  Previous page  Next page

MsgBox("prompt"[[,icon][,"caption"]])

 

Where:

promptis the text to display in the message dialog box. This parameter may be a variable containing the message text.
iconis one of the following Windows message box icons: ICONSTOP, ICONEXCLAMATION, ICONQUESTION, ICONINFORMATION. If omitted, ICONEXCLAMATION is used. Use ICONNONE to display the message box without an icon. This parameter may be a variable containing the name of the ICON to use.
captionis the caption that appears in the title bar of the message box. If omitted the caption will be "TN3270 Plus". This parameter may be a variable containing the message box caption.

 

prompt, icon and caption may be variables.

 

The MsgBox command pauses the script and displays a dialog box that contains a message for the user. The MsgBox dialog box displays the prompt and OK and Cancel buttons. Click the OK button to continue script processing. Click the Cancel button to cancel the script.

Example

MsgBox("The script completed successfully!",ICONINFORMATION)

 

DialogMsgBox

 

See Also:

 

Script Command Summary

Script Variables

TextBox

Using the Scripting Language

 


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.