I've been looking, so if the answer is in the documents somewhere, I would be happy with a link.
Here's the situation:
I have a progam with LOTS of functions. I have a controlling function that reads in a string variable. This variable contains the names of functions and parameters:
func1(a,b,c);func2;func3(a,b,c)
I have functions that correspond to these function calls.
I don't really want to write a big IF statement...I would rather parse the string so that I have a variable called strFuncName.
strFuncName = "func1"
strParams = "a,b,c"
Now, I want to call func1(a,b,c), then call func2, then func3(a,b,c). I also want to gracefully handle the exception if a function is called that doesn't actually exist.
Any ideas?
Thank you.
Here's the situation:
I have a progam with LOTS of functions. I have a controlling function that reads in a string variable. This variable contains the names of functions and parameters:
func1(a,b,c);func2;func3(a,b,c)
I have functions that correspond to these function calls.
I don't really want to write a big IF statement...I would rather parse the string so that I have a variable called strFuncName.
strFuncName = "func1"
strParams = "a,b,c"
Now, I want to call func1(a,b,c), then call func2, then func3(a,b,c). I also want to gracefully handle the exception if a function is called that doesn't actually exist.
Any ideas?
Thank you.