we have a class that has many functions, some with arguments, some not. we build an array of this class and need to be able to tell the particular instance of the class to perform a desired function. is there a method to call a desired function within a class with a variable refering to the function? the class has a function:
public function play(number as integer)
in our main code we call the function with:
or any number of other functions within the class.
is there a way to send a vaiable for the function name like:
dim var as string = "play"
this method fails, of course. is there a way to do this?
do we need to set up a separate function that calls the other functions?
public function command(var as string)
dim mess() as string=split(var,vblf)
select case mess(0)
if this is all we can do, then we are going to extend our code quite a bit and it seems unnecessary.