Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing com object properties from event handler
Message
 
To
15/11/2001 14:16:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00582281
Message ID:
00582308
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform