Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] how to - call function with variable
#1
Is this possible?

Imagine I have the functions

func1
func2
func3

int functionumber <--------- this will be = 1 or 2 or 3
can I make a variable, functiontocall.from("func" functionumber)

So when the functionnumber = 1 then functiontocall = func1, and call that function?

Thanks
#2
sel number
,case 1 func1
,case 2 func2

See also call.
#3
Thank you!


Forum Jump:


Users browsing this thread: 1 Guest(s)