09.06.2011, 08:47
Basically, I want to be able to do the following:
Is this at all possible? And if so, how would it be achieved?
Код:
new test =124;
GetVariable(string[]) {
return string; // If string == "test", then I want this to return the value of the variable named "test" (i.e.,124)
}
new second =GetVariable("test"); // Where the 'second' variable now == 124.

