Using REM $IGNORE ON/OFF Metacommand in Macintosh QuickBASIC (33048)
This article was previously published under Q33048
SUMMARY
The $IGNORE ON metacommand, in conjunction with $IGNORE OFF, instructs
the Macintosh QuickBASIC compiler to ignore the body of code between
the two metacommands. This is useful when you have code that is
specifically for the interpreter.
For example, the TRON statement is valid only in the interpreter and,
if you compile a program that has a TRON statement, you will receive
an "UNPRINTABLE ERROR" message from the compiler.
The following program will run in the interpreter in QuickBASIC, and
will also compile and run without error:
REM $IGNORE ON
TRON
TROFF
REM $IGNORE OFF
PRINT "hello"
END
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB33048 |
|