Jump to content

Can a function name vary


Recommended Posts

Is this possible:

Executing a function from an include, but taking the function name from a gui input and then executing that function using the include:

#include <Something.au3>
;input reads "Tree"
$functionName = GuiCtrlRead($input1)
$functionName(1)

And the include is gonna have

Func Tree($x)
If $x = 1 Then $this = "text"
MsgBox(0,$this,"whatever")
EndFunc

is it possible?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...