BC "Variable Name Not Unique" on SUB with Period in Name (40890)
This article was previously published under Q40890
SUMMARY
If a Basic SUBprogram name contains a period (that is, a dot), then
any variables that have the same name as the portion of the SUBprogram
name that is left of the period produce a "Variable name not unique"
error message from BC.EXE at compile time. The program does not
produce the error inside the QB.EXE editor environment.
This information applies to Microsoft QuickBasic Versions 4.00, 4.00b,
and 4.50 and Microsoft Basic Compiler Versions 6.00 and 6.00b for
MS-DOS and MS OS/2.
This behavior does not occur in Microsoft Basic PDS Version 7.00.
Basic PDS Version 7.00 will successfully compile a program under the
above conditions.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB40890 |
|