$ERROR compiler directive

$ERROR compiler directive

Top  Previous  Next


The $ERROR directive generates a compilation error.





$ERROR message




messageis the error message to be displayed by the compiler.



The $ERROR directive causes the QMBasic compiler to generate a compilation error. It is most likely to be used inside a $IFDEF conditional compilation structure to recognise that the program is in some way invalid.






  $ERROR Platform not defined



The above example generates a compilation error if the PLATFORM token has not been defined.


See also: