So I want to use a string variable to call or declare other stuff. For example: I write down "some_random_name" in a text box and then press a button that calls a function which declares a variable or object called "some_random_name". Another example: I have declared a variable from type integer called "a_variable". I write down this name in a text box and then I press a button that calls a function which shows me the value of "a_variable". The second example can also be done this way:
if (the_wanted_variable == "a_variable") show_value(a_variable);
But that's a different question.
I have found a solution... but I couldn't understand it. It was about Reflections. Maybe a need an easier to understand explanation how to do it (no matter how big it is).
Thanks!