Function Name is Variable

D

DevDaniel

I have: Variable intProcess. The function called is based on the value of
intProcess. The functions are similar in name.
e.g.,
If intProcess = 150 then function fnCalculations150 is called,
If intProcess = 835 then function fnCalculations835 is called, ...

I want: Instead of using a large IF or SELECT CASE statement, I want to use
a variable function name.
e.g.,
strFunction = "fnCalculations" & intProcess
Call strFunction

Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top