Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing an object from a property
Message
De
08/06/2001 16:53:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00517216
Message ID:
00517224
Vues:
24
>>>>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
>>
>>This is what I did. I thought I could have referenced it without evaluating.
>
>Doesn't &cControl..value work? I thought it did, though I haven't tried it lately.

Evaluation or macro substitution is needed. Ok, I thought we could get it directly. <s>
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform