Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing com object properties from event handler
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00582281
Message ID:
00582308
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>I create an event handler using
>
>
>EventHandler(oCOMObject, oVFPObject)
>
>
>I want to access to oCOMObject properties from event in oVFPObject without
>using global memory variable.
>
>Is this possible ?

Andrus,

Then you need to use some property which will be pointing to th oCOMObject.
You might even add a property to your oVFPObject (say, oEventSource) which receives the events.

oVFPobject.oEventSource = oCOMObject
or you can even create your COM object as
oVFPobject.oEventSource = CREATEOBJECT("mycomdll.mycom1")

EventHandler(oCOMObject, oVFPobject.oEventSource)

Then you address it:

this.oEventSource.SomeProperty = whatever
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