PRB: Error 459 Trying to Use Alternate Object InterfaceLast reviewed: August 5, 1997Article ID: Q172329 |
The information in this article applies to:
SYMPTOMSYou get run-time error 459 "Object or Class does not support the set of elements" when assigning an object of class "A" to an object variable of class "B" in order to use an alternate interface.
CAUSEThe base class you are implementing in your object defines an Event object and your object variables are declared using the WithEvents keyword. The Visual Basic versions listed above do not support events in inherited interfaces.
RESOLUTIONThis is a limitation of the versions of Visual Basic listed above.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional query words: WithEvents Implements
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |