HI vffgaston
I need to call a function depending on the value of a variable
Do you mean you want to have a series of different functions and then call a specific one based on the value of the variable?
You could use a switch statement to do this. Probably the easiest and most "bulletproof".
Alternatively, you could set up a matrix of function pointers and then use your variable to index into the array and call the relevant function.
Regards
Ray