Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a procedure to an ActiveX control
Message
 
 
À
29/06/2000 16:09:08
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00386187
Message ID:
00386753
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform