PRB: Can't Have Multiple Declare Statements for Same Function (129446)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q129446 SYMPTOMS
Visual Basic version 4.0 generates a compile error if there are two Declare
statements with the same name in the project when the Declare statement
takes a UDT (User Defined Type) or object as a parameter. However, there is
no problem if none of the parameters are UDTs or Objects.
RESOLUTION
Put the Private keyword in front of one of the Declare statements.
STATUS
This behaviour is by design. This behavior was allowed in Visual Basic
version 3.0, but is no longer allowed in Visual Basic version 4.0.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb KB129446 |
---|
|