Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a procedure to an ActiveX control
Message
 
 
To
29/06/2000 16:09:08
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00386187
Message ID:
00386753
Views:
14
Hey Jon,
No, I don't know of another way. Since you already have the object instantiated (in order to bind them) then that would be the easiest way to do it within the custom class.

>Hi Larry,
> Using the bindevents method of VFPCOM, how do you reference a property on the ActiveX/COM object from within the VFP event sink object procedures?
>
>If I have this as a procedure in the class def. of the sink object:
>PROCEDURE INIT
> THIS.LEFT = 100
>ENDPROC
>
>Referencing this.left doesnt reference the ActiveX object, because This is the sink object.
>I know I can add a property in the class def. of the sink object and after binding the ActiveX to the sink object, store an object reference to the ActiveX in that custom property and use the following init event:
>
>PROCEDURE INIT
> THIS.oBound.LEFT=100
>ENDPROC
>*oBound being the custom property added to the class def.
>
>Is there another way? if this makes sense...
>TIA,
>Jon
>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform