Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indirect use of variables
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00004081
Message ID:
00004150
Views:
40
>you shouldn't have to evaluate this...
>STORE variablecontainingname TO myvar should work.

But what I think he is talking about is STORing the contents of the variable referred to in variablecontainingname TO myvar.

So for example:

var1= "john" &&/ referenced variable
vcn= "var1" &&/ this is variablecontainingname
STORE EVAL(vcn) TO var2
? var2

Try it. I just did and it works (using FPW 2.6a).
STORE (vcn) TO var2 &&/ this does not work, var2 then will contain "var1" instead of its contents.

HTH
*John R. Gammon * Goodwill Industries International, Inc.*
*jgammon@goodwill.org * http://www.goodwill.org *
********************* * MIS Department : Programmer/Analyst *
Look out! Its the bleeding edge!
Ahhh, now I'm bleeding all over (again).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform