Andy Nicholson / Publications
Forum
using a name in a string to get the value of a variable of same name
If i have a variable "double x=1.1;" and a string "string variables[] = {"a","b","x","y"};" I can obvioulsy get my x string by saying "variables[3]" but how do i get this back into my variable value of 1.1 if i only know that variables[3] contains the name of the variable that holds my value of 1.1