Variable with Periods in COMMON Block Can Cause Problems (42586)
This article was previously published under Q42586
SYMPTOMS
In the Microsoft QB.EXE editor, CHAINing between programs that have a
COMMON block can cause errors, under the following conditions:
- The programs have a COMMON block.
- The COMMON block contains an array, a user-defined TYPE variable,
and a simple variable that contains one or more periods.
The result is an "array not defined" error message in the CHAINed-to
program. If the period(s) are removed from the simple variable, the
programs CHAIN and run correctly. This error occurs only when running
in the QB.EXE editor. The programs execute properly after being
compiled with BC.EXE.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions
4.00, 4.00b, and 4.50. This problem was corrected in Microsoft Basic
Professional Development System (PDS) Version 7.00 (fixlist7.00).
Microsoft also recommends that you do not use periods in variable
names, since the period is now used to distinguish between
user-defined-TYPE variables. There may be conflicts between the two
usages.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB42586 |
|