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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao