Directive #error Foundation
Generates a compiler error and displays an error message
#error [<ErrorMessage>]
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.
// 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
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.