Directive #error Foundation
Generates a compiler error and displays an error message
Syntax
#error [<ErrorMessage>]
Parameters
<ErrorMessage>
<ErrorMessage> contains the text of the error message which is displayed on screen during the compile. It should be literal text with no surrounding quotes.
Description
The directive #error causes the compiler to generate the error code XBT0517, prevent creation of an OBJ file, and display the error message <ErrorMessage> on the screen.
Examples
// In this example an obsolete command conveys
// a compiler error using the directive #error.
#command SET FORMAT TO <*x*> => ;
#error Unsupported command: SET FORMAT
PROCEDURE Main
SET FORMAT TO Customer // Generates compiler error
RETURN
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.