Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My wish to VFP 7.0
Message
From
16/03/2001 07:26:19
 
 
To
16/03/2001 07:13:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00484748
Message ID:
00485781
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform