Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to EventHandler()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00688642
Message ID:
00706193
Vues:
29
>>>Trying to understand the EventHandler() service. VFP HELP seems to indicate that the COM binded with cannot be a VFP object. The example shows an ADO Recordset bind. Could the event handler be bound to an ActiveX object event, like PROGESS BAR, etc.?
>>>
>>>Thanks
>>>Terry
>>
>>Any ActiveX is a COM object, so if it exposes events, they can be bound with EventHandler() or VFPCOM.DLL. There is a way to bind VFP objects. Not directly to VFP object though, but through another COM object (not VFP) which can raise the event on demand from VFP object. The result will be the same as if you could directly bind them.
>
>Any examples hanging about? It would sure be neat to understand how a VFP COM could be made to send a message to a client form and have that client respond, by either messaging the client or running some client service.
>
>Thanks

I described all this in the article "Raise Events from your applications", FoxPro Advisor February 2001, with the samples. Another article about this waits its turn on Ken Levy's desk. :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform