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