Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My wish to VFP 7.0
Message
De
16/03/2001 07:26:19
 
 
À
16/03/2001 07:13:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00484748
Message ID:
00485781
Vues:
14
>There are some situations that you dont know a variable name until runtime (for instanse it comes in my mind a form that i am putting verious controls in runtime based on some contitions which somehow prohibit to use an array to hold the control references ...)":
>var="myvar"+ (a string made by some contitions)
>&var="string" && or an object
>?&var (gives "string")
>Is there possible to do the above code by other means ???
>
>Thank you
var="myvar" + (a string made by some contitions)
Store 'String' to (var)
? eval(var)
That should work - and be faster too!
Will Jones
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform