"Formal Parameter Specification Illegal" for DECLARE Variable (39378)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
This article was previously published under Q39378 SUMMARY
The BC.EXE compiler generates a "Formal parameter specification
illegal" error when a DECLARE statement uses a variable that is the
same name as a FUNCTION or SUB previously declared in the program.
The QB.EXE editor will not generate an error for the same DECLARE
statement.
In general, you should never have any variables with the same name as
any other identifier in your programs. You should also avoid having
any two variables or identifiers that only differ by the data type
specifier. For example A$ and A% are poor choices for variable names
in the same program.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB39378 |
---|
|