Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to grab an object reference differently?
Message
De
21/09/2005 09:44:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/09/2005 17:05:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01051386
Message ID:
01051618
Vues:
14
>>Hi Everyone,
>>
>>Is there a better way to grab an object reference to a newly added object to a form without using EVAL() to get it? e.g. here is the code:
>>
>>THISFORM.AddObject(lcObjectName,"lblStepXLabel")
>>
>>STORE EVALUATE("THISFORM." + lcObjectName) TO loNewObject
>>
>>
>>Albert
>
>
>
>THISFORM.AddObject(m.lcObjectName,"lblStepXLabel")
>STORE GETPEM(m.THISFORM,m.lcObjectName) TO loNewObject
>
This is interesting. A good reminder that GetPem is not there just for properties - we can use it on members as well.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform