|
-
December 29th, 2011, 02:03 PM
#1
[RESOLVED] Variable name in string to variable
I have a variable name stored in a string as:
string var = "xyz"; //xyz will be different based on fucntion call
but each of these "xyz" are indeed variables. So, I have:
xyz = 1;
abc = 13.5;
etc.
So, you can see that they can be an int or double.
How do I use the stored string in 'var' to access the variables?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|