Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
 
À
15/04/1998 07:50:34
Steve Camsell
Windmill Associates
Bath, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00090513
Message ID:
00092082
Vues:
33
Steve,

Try this,

var_name='var_value'
STORE 6 TO (var_name)
?var_value

var_value will now equal 6.

>I've just had a really good 'play' with that over my lunch break, and I've failed as well. It would appear that using & is the only way (I stand to be corrected of course!). If you find a way of doing it, please let me know.
>
>>> Since the speed of EVAL() is about twice the speed of using &, is there a way
>>> of doing the following using EVAL()?
>>>
>>> var_value = 5
>>> var_name = 'var_value'
>>> &var_name = 6 && var_value is now 6
>>>
>>> I don't see a way of using EVAL() to accomplish that, but I might be missing something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform