Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EventHandler Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00798103
Message ID:
00798114
Views:
24
From the VFP Help File:

"The class must implement the events interface for the particular COM object being passed in the first parameter."

Off hand, I'd say the control does not implement the proper interface.

>Why does this not work:
>
>
>oEventSet = CREATEOBJECT("MyEvents")
>=EVENTHANDLER(ThisForm.MyControl, oEventSet)
>
>
>MyControl is an ActiveX control on the form. MyEvents is a class
>in a PRG containing the event set for the activeX control.
>
>I get a "Function argument value, type or count is invalid" error
>on the EVENTHANLDER line.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform