Is there a way that I can call a function by having its name stored in a variable?
So I can change the value of this variable and a different function will be called with the same line of code. e.g.
variable = "function1()";
for (int i = 1; i < 2; i++)
variable = "function" + i + "()";
Am I making any sense and can you see what I am getting at?