Jump to content
Sign in to follow this  
ericnail

Using a Variable as a Function

Recommended Posts

ericnail

Is there a way to use a variable as a function?

I'm using "GUICtrlRead($input_1)" to read an input box from my GUI. I want to then be able to do this:

$FunctionName = GUICtrlRead($input_1)
$Parameter = GUICtrlRead($input_2)

$ReturnValue = $FunctionName($Parameter)

How can I do this?

Share this post


Link to post
Share on other sites
MattyD

Func functioname ( [Const] [byRef] $param1, ..., [Const] [byRef] $paramN, $optionalpar1 = value, ...)

...

[Return [value]]

EndFunc

Share this post


Link to post
Share on other sites
ericnail

Ohh Nvm.

I figured it out (using the "Call" Function).

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.