Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing an object from a property
Message
 
 
To
08/06/2001 17:34:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517216
Message ID:
00517259
Views:
19
>>>>What I am saying is that if the object reference is stored to cControl and not the literal "txtwhatever" then Thisform.cControl.value returns the value of the control "txtwhatever".
>>>>
>>>>My post did not come out as I typed it. I take it putting class between delimiters here is a no no.
>>>
>>>I don't use quotes between my value in the cControl property and I get an unknown reference. The cControl property is a text property. It holds text. So, I can't see how that can be interpreted as is to be a control reference. Maybe I am missing something. :(
>>
>>I think he means you can set its value to eval(SomeObject.SomeProperty). Now you have an object ref in the property. But then you would have an oControl property instead of a cControl property.
>
>Which means, back to square, as we still have to evaluate.

But only once when you store that reference to the property. After that, all you have to do is ThisForm.oControl.Value. If you leave it a text, then you have to Eval() it every time you need it. Just make sure to set that property to .null. in the Destroy of the form.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform