Skip to content

Stop_Box

See Also: Dialog and Message Box Functions, Info_Box, Message_Box, YesNo_Box, YesNoCancel_Box

Purpose

Displays an error dialog box.

Return Type

None

Syntax

Use Windows.pkg
Send Stop_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 \n in the text.

  • {sCaption}: The {sCaption} 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 "Stop".

What It Does

Stop_Box is used to pop up a serious error information message box. The message string {sMessage} is displayed in a message box dialog along with the Stop icon and a single OK button.

Examples

Send Stop_Box "Unable to open file for output!"

In the above example, the information dialog's caption bar will read "Stop".

Notes

If the user types Ctrl+C in the stop box, the text of the message is copied to the clipboard.

See ShowInfoBox for Web application message boxes.