Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Member OBJECT does not evaluate to an object
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01325367
Message ID:
01325381
Views:
16
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform