Microsoft KB Archive/42321

= Syntax Error, Duplicate Definition, Expected: Variable=Express =

Article ID: 42321

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0
 * Microsoft QuickBASIC 4.0b
 * Microsoft QuickBasic 4.5 for MS-DOS
 * Microsoft BASIC Professional Development System 7.0

-



This article was previously published under Q42321



SUMMARY
The sample code below shows three very closely related pairs of Basic code. Each example produces a different error, as shown.

This information applies to the QB.EXE environment supplied with QuickBasic Versions 4.00, 4.00b, and 4.50, Microsoft Basic Compiler Versions 6.00 and 6.00b for MS-DOS, and the QBX.EXE environment supplied with Microsoft Basic PDS Version 7.00 for MS-DOS.

Under QuickBasic Version 3.00, all three code segments produce the error message &quot;MISSING =&quot;.

The following are code examples: ' PROG #1 bd% = 6 bd% - 13 = c  ' &quot;Expected: variable= expression&quot;

' PROG #2 bd% = 6       ' &quot;Duplicate Definition&quot; bd - 13 = c

' PROG #3 x% = 6 bd - 13 = c   ' &quot;Syntax error&quot;

Additional query words: QuickBas BasicCom

Keywords: KB42321

-

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

© Microsoft Corporation. All rights reserved.