&MESSAGE preprocessor directive
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Displays a message at compile time in the Compiler Messages dialog box.
Note: Does not apply to SpeedScript
programming.
Syntax
|
- text-string
- A string of characters, preprocessor name references, named include file arguments, or any combination of these that results in a character string to display. The text-string argument does not need to be quoted.
Example
This is a possible compile-time message directive:
|
If this fragment appears in a procedure file, cmessage.p, compiling this file with the COMPILE statement
causes the following message to be included with the compiler messages:
|
Notes
- The compiler removes /* Multi-line comments */ on lines of ABL code with
preprocessor directives. To retain comments, use // Single-line comments or
escape the multi-line comment using a tilde
(
~). For example,&SCOPED-DEFINE VAR3 DEF VAR xpos AS INT. /~* column position of fill-in *~/.