Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Member OBJECT does not evaluate to an object
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01325367
Message ID:
01325381
Vues:
17
Looks like one of VFP quirks with AxtiveX controls. You can use following workaround in the class
IF TYPE("this.Object") = "O"
	this.rightmargin = this.width - 25
ENDIF	
>This works:
>
>Put an RTF control on a form. In Init() and Resize() of control have:
>
this.object.rightmargin = this.width - 25
>
>The form runs fine. So far so good.
>
>Now I saved the control as a class.
>When I use the class on a form, and run the form, it gives this error message for Resize():
>"Member OBJECT does not evaluate to an object".
>
>The Init() does not give the error.
>
>So I tried changing the Resize() code to:
>
this.rightmargin = this.width - 25
>But that does not work either. The error is: Property RIGHTMARGIN is not found.
>
>So to get it to work, I have to clear the Resize() of the class, and put the this.object.rightmargin = etc into Resize() after it is on the form.
>
>Is there an obvious mistake here?
>
>Cyril
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform