Skip to content

Latest commit

 

History

History
 
 

Q26009

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
layout title permalink
page
Q26009: CONST "Syntax Error" with BC.EXE 4.00, but Works in Editor
/kb/026/Q26009/

Q26009: CONST "Syntax Error" with BC.EXE 4.00, but Works in Editor

{% raw %}

Article: Q26009
Product(s): See article
Version(s): 3.00 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 25-APR-1989

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 "Syntax error" at the
last parenthesis at compile time, as follows:

   CONST True% = (0=0)

QB.EXE Version 3.00 issues an "illegal constant" 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.

{% endraw %}