Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event binding on COM Object.?
Message
 
 
À
11/07/2003 16:55:21
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00809419
Message ID:
00809424
Vues:
26
>Hello,
>
>I have a COM object that has a Class with an Event that is
>fired by various com funtions that I call. How can I attach
>to the event so I can retreive the text that is returned when
>the event is fired?
>
>Thanks,
>

Gary,
Perhaps you can explain this a little more in-depth.

If you are looking to bind to a COM event using the VFPCom utility or EventHandler, you don't be able to get the text being returned. Events don't work like that. Events are fired and usually don't return values. You could set a property within the event code and read that property after the event.

If you are executing an VFP via an explicit call, then you can very easily get the text returned by setting a variable to the return value.

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform