Microsoft KB Archive/71790

= 7.10 BC /D &quot;Internal Error&quot; Using Array in FIELD in WHILE =

Article ID: 71790

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft BASIC Professional Development System 7.1

-



This article was previously published under Q71790



SYMPTOMS
When the following code example is compiled under the Microsoft Basic Professional Development System (PDS) version 7.10 using the BC /D option for run-time error checking, the compiler gives an &quot;Internal Error near 851C&quot;.

This error does not occur if you compile without the /D option.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Basic Professional Development System (PDS) version 7.10 for MS-DOS and MS OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does not occur in Microsoft Basic PDS 7.00 for MS-DOS and MS OS/2.



MORE INFORMATION
To work around this problem, do not compile with the /D option, or else change the code within the WHILE..WEND loop below. (For example, adding a &quot;NQ=NQ&quot; directly after the &quot;NQ = NQ + 1&quot; will prevent the error.)

Code Example
DEFINT I-N DIM lfield(10, 10), xvar$(8, 20) WHILE lfield(nfile, nq) <> 0 FIELD #nfile, i AS xdummy$, lfield(nfile, nq) AS xvar$(nfile, nq) i = i + lfield(nfile, nq) nq = nq + 1 WEND

Additional query words: BasicCom SR# S910426-66 buglist7.10

Keywords: KB71790

-

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

© Microsoft Corporation. All rights reserved.