Info_Box
See Also: Dialog and Message Box Functions, Message_Box, Stop_Box, YesNo_Box, YesNoCancel_Box
Purpose
Displays an information dialog box.
Return Type
None
Syntax
Use Windows.pkg
Send Info_Box {sMessage} [ {sCaption} ]
Where:
-
{sMessage}: A string containing the information message to be shown. A carriage-return/linefeed can be placed in the message string by the inclusion of
\nin the text. -
{sCaption}: This parameter is optional. If passed, it specifies the content of the caption bar. If {sCaption} is not passed, the caption bar will display the string "Information".
What It Does
Info_Box is used to pop up a modal information message box. The message string {sMessage} is displayed in a message box dialog along with the Information icon and a single OK button.
Examples
Example 1
Send Info_Box "The update has successfully completed"
In the above example, the information dialog's caption bar will read "Information".
Example 2
Send Info_Box ("Printer is On line.\n" + "Current Port is " * sPortName) "Printer Status"
In the above example, a string expression is used to build the message text. The text will be broken over two lines. The info box will display "Printer Status" in its caption bar.
Notes
If the user types Ctrl+C in the info box, the text of the message is copied to the clipboard.
See ShowInfoBox for Web application message boxes.