Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing an object from a property
Message
 
To
08/06/2001 16:44:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517216
Message ID:
00517220
Views:
18
>I have a property which holds the name of an object. From that property value, how can I reference its object?
>
>For example, a class might have a cControl property. Lets say that cControl=ThisForm.txtFirstName. Now, in a method, I want to reference the value of the ThisForm.txtFirstName property by the use of the cControl property.

Simple,
oControl = EVALUATE(ThisForm.cControl)
? oControl.Value
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform