PRB: Can't Have Multiple Declare Statements for Same FunctionLast reviewed: December 18, 1995Article ID: Q129446 |
The information in this article applies to:
SYMPTOMSVisual 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.
RESOLUTIONPut the Private keyword in front of one of the Declare statements.
STATUSThis 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.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: incompatibility 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |