Passing a string to return a variable value
Posted on 1998-08-21
Is there a way of passing a string into a function, comparing its value as memory and then return the value of a static variable of another whose name is the same as the string.
I want to be able to create a general solution to the returning of such variables since there are so many of them and they be changed over time. Otherwise you could just have a switch statement which would return a variable depending on the string input. This would be very messy since such a long switch statement would be required.