STATUS
Microsoft has confirmed this to be a bug in the BC.EXE environment
of Microsoft QuickBasic versions 4.00, 4.00b, and 4.50 for MS-DOS; in
the BC.EXE environment of Microsoft Basic Compiler versions 6.00 and
6.00b for MS-DOS and MS OS/2 (buglist6.00, buglist6.00b); and in the
BC.EXE environment of Microsoft Basic Professional Development System
(PDS) versions 7.00 and 7.10 for MS-DOS and MS OS/2 (buglist7.00,
buglist7.10). 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 the QB.EXE or QBX.EXE environment.
Code Example
The following code example produces the "Internal Error Near xxxx"
error when compiled with BC.EXE. An example of the workaround
suggested above is listed in a comment after the offending statement.
Compile the program below as follows:
BC INTERNAL.BAS;
(Note that the BC /D and /O compiler options do not eliminate the
problem.)
' INTERNAL.BAS
DIM A&(10, 10)
'Subtraction and division cause error, not addition or multiplication:
B& = A&(i%, 1 - i%) + A&(i%, i%) 'Remove this line to prevent error
'B& = A&(i%, 0 + 1 - i%) + A&(i%, i%) 'Equivalent line works correctly