Microsoft KB Archive/95863

= Wrong Number of Dimensions in Common or Dim Statement =

Article ID: 95863

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Visual Basic for MS-DOS
 * Microsoft BASIC Professional Development System 7.1
 * Microsoft QuickBasic 4.5 for MS-DOS

-



This article was previously published under Q95863



SYMPTOMS
When you specify an array in a Common statement and later use the array with an incorrect number of dimensions, the QB.EXE and QBX.EXE environments correctly report &quot;Wrong number of dimensions,&quot; but incorrectly indicates the position of the error as being in either the Common statement or the Dim statement for the array.



STATUS
Microsoft has confirmed this to be a bug in the products listed above. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
To find the true position of the error, use the BC.EXE compiler from the MS-DOS command prompt to compile your source file and generate a compiler listing. For example:

BC /A TEST.BAS,,TEST.LST

The .LST compiler listing indicates the line that has the error.

The following code sample reproduces the problem: Common a Dim a(9, 9) a(1) = 1

Additional query words: VBmsdos QuickBas BasicCom 1.00 7.10 4.50 b_basiccom b_quickbas buglist1.00 buglist7.10 buglist4.50

Keywords: KB95863

-

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

© Microsoft Corporation. All rights reserved.