FIX: PRINT ERL,X Gives Syntax Error in Macintosh QuickBasic
Article ID: 20562
Article Last Modified on 12/11/2003
APPLIES TO
- Microsoft QuickBasic Compiler for Macintosh 1.0
- Microsoft QuickBasic Compiler for Macintosh 1.0
- Microsoft QuickBasic Compiler for Macintosh 1.0
- Microsoft QuickBasic Compiler for Macintosh 1.0
- Microsoft BASIC Interpreter 2.0
- Microsoft BASIC Interpreter 2.1 for Macintosh
- Microsoft BASIC Interpreter 3.0 for Macintosh
This article was previously published under Q20562
SYMPTOMS
The following statement mistakenly gives a "Syntax Error" in the
interpreter in QuickBasic version 1.0 and in the Basic interpreter version
2.1 for Macintosh. (An "Undefined Label" error occurs in the Basic
Interpreter version 2.00.)
PRINT ERL,<variable>
RESOLUTION
The problem does not occur in a compiled program. To work around the
problem in the interpreter, explicitly type the variable with %, !, #,
or $. For example, instead of the following
PRINT ERL,X ' This gives error.
use one of the following:
PRINT ERL,X% ' This works OK.
PRINT ERL,X! ' This works OK.
PRINT ERL,X# ' This works OK.
PRINT ERL,X$ ' This works OK.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft QuickBasic
Interpreter versions 2.00, 2.10, and 3.00 and in the interpreter in
Microsoft QuickBasic version 1.00 for the Macintosh. This problem was
corrected in Microsoft QuickBasic version 1.00b for the Macintosh.
Additional query words: MQuickB 1.00 1.00a 1.00b B_BasicInt fixlist1.00b buglist1.00 buglist1.00a buglist2.00 buglist2.10 buglist3.00
Keywords: kbbug kbfix KB20562