MessageWarning()

Previous Next

Opens a warning box in which it displays the specified text, then waits for the end user to click the OK button.

To display on-screen field values in messages, refer to these values using embedded method calls and the FORMULA() method. This allows you to concatenate on-screen values with hard-coded message text.

MessageWarning(FORMULA(':1 || :2 || :3',

 'For tours to ', query.destination(), ', personal insurance is obligatory.'))

The resulting message would then be:

For tours to Africa, personal insurance is obligatory.

Syntax

MessageWarning(<text>)

Parameters

text

The text you want to display as a warning message. Note the following:

· As with all non-variable method call parameters, the message itself must be enclosed in single quotes.

 

· If the text is to include single quotes ('), each of these must be written as two single quotes (''), and the message must be enclosed in single quotes.

 

· If the text is to include percent signs (%), each of these must be written as two single percent signs (%%).

 

· If the text is to include double quotes ("), these can be written normally as double quotes (").

NOTE:

If you intend to have your application translated, use MessageLanguage() instead.