ericnail 0 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? Share this post Link to post Share on other sites
MattyD 22 Posted September 29, 2010 Func functioname ( [Const] [byRef] $param1, ..., [Const] [byRef] $paramN, $optionalpar1 = value, ...) ... [Return [value]] EndFunc Share this post Link to post Share on other sites
ericnail 0 Posted September 29, 2010 Ohh Nvm. I figured it out (using the "Call" Function). Share this post Link to post Share on other sites