Microsoft KB Archive/26009

= CONST &quot;Syntax Error&quot; with BC.EXE 4.00, but Works in Editor =

Article ID: 26009

Article Last Modified on 11/21/2006



This article was previously published under Q26009



SUMMARY
The following line of code compiles properly inside the QB.EXE Version 4.00, 4.00b, or 4.50 editor, but BC.EXE issues a &quot;Syntax error&quot; at the last parenthesis at compile time, as follows: CONST True% = (0=0) QB.EXE Version 3.00 issues an &quot;illegal constant&quot; error message when this code is either run from memory or compiled.

To work around this problem, use -1 or any other nonzero value to represent a logical TRUE, as follows: CONST True% = -1 CONST False% = 0 Microsoft is researching this problem and will post new information as it becomes available.

Additional query words: QuickBas

Keywords: KB26009

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.