ericnail Posted September 29, 2010 Share Posted September 29, 2010 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? Link to comment Share on other sites More sharing options...
MattyD Posted September 29, 2010 Share Posted September 29, 2010 Func functioname ( [Const] [byRef] $param1, ..., [Const] [byRef] $paramN, $optionalpar1 = value, ...) ... [Return [value]] EndFunc Link to comment Share on other sites More sharing options...
ericnail Posted September 29, 2010 Author Share Posted September 29, 2010 Ohh Nvm. I figured it out (using the "Call" Function). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now