FIX: PRINT ERL,X Gives Syntax Error in Macintosh QuickBasic (20562)



The information in this article applies to:

  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0a
  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0b
  • Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0e
  • Microsoft BASIC Interpreter for Apple Macintosh 2.0
  • Microsoft BASIC Interpreter for Apple Macintosh 2.1
  • Microsoft BASIC Interpreter for Apple Macintosh 3.0

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.

Modification Type:MajorLast Reviewed:12/11/2003
Keywords:kbbug kbfix KB20562