Sign in to follow this  
Followers 0
ericnail

Using a Variable as a Function

3 posts in this topic

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



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

...

[Return [value]]

EndFunc

Share this post


Link to post
Share on other sites

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  
Followers 0