Microsoft KB Archive/57378

= BUG: Error Generated Using a Boolean Expression in Array Index =

Article ID: 57378

Article Last Modified on 11/21/2006



This article was previously published under Q57378



SYMPTOMS
The following code returns &quot;Closing parenthesis expected&quot; when compiling the program. The code works within the interpreter.

Microsoft has confirmed this to be a bug in Microsoft QuickBasic Version 1.00 for the Macintosh and in Microsoft Basic Compiler Version 1.00 for the Macintosh. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

If you add the closing parenthesis, as the error message suggests, the interpreter will then flag a &quot;Syntax error&quot; error message.

You can remove the Boolean expression, i>7, from the statement and test this prior to assigning b$(i) a value.

The following line causes the &quot;Closing parenthesis expected&quot; error: b$(i(i>7)) = &quot;&quot;

Additional query words: MQuickB

Keywords: kbbug KB57378

-

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

© Microsoft Corporation. All rights reserved.