Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to grab an object reference differently?
Message
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:
01051409
Vues:
12
Albert,

You can use macro substitution instead.
IF THISFORM.AddObject(lcObjectName,"lblStepXLabel")
   loNewObject = THISFORM.&lcObjectName
ELSE
   * Error
ENDIF
Kurt
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform