Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Member OBJECT does not evaluate to an object
Message
From
19/06/2008 04:41:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Member OBJECT does not evaluate to an object
Miscellaneous
Thread ID:
01325367
Message ID:
01325367
Views:
80
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
Next
Reply
Map
View

Click here to load this message in the networking platform