Article ID: 172329 - Last Review: May 13, 2003 - Revision: 3.0 PRB: Error 459 Trying to Use Alternate Object InterfaceThis article was previously published under Q172329 On This PageSYMPTOMS
You 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.
CAUSE
The 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.
RESOLUTION
This is a limitation of the versions of Visual Basic listed above.
STATUS
This behavior is by design.
MORE INFORMATIONSteps to Reproduce Behavior
APPLIES TO
| Article Translations
|
Back to the top
