Jkeith247 Posted January 9, 2012 Share Posted January 9, 2012 I know there is an easy way to do this... for some reason it is escaping me right now... Basically I am sending UDP commands from one pc to another. The UDP command is in actuallity the name of a function on the other pc. Instead of creating some lengthy "if" statements, I am trying to call the function based on the UDPcommand... Is it possible to call store a function name into a variable and then call the function? Link to comment Share on other sites More sharing options...
JohnOne Posted January 9, 2012 Share Posted January 9, 2012 Call() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
TheGeneral Posted January 9, 2012 Share Posted January 9, 2012 main() Func main() Local $functioname = "test" Call($functioname) If @error Then MsgBox(0,"Reply", "It doesn't work") EndFunc Func test() MsgBox(0, "Reply", "It Works") EndFunc Couldn't you have done it? Just remember to check if there's an error, your string (received) may be corrupted or invalid. Link to comment Share on other sites More sharing options...
Jkeith247 Posted January 9, 2012 Author Share Posted January 9, 2012 (edited) Thank you very very much.... It was a late night coding marathon and I was not on the mental up and up.... Coffee was not working... We have all been there... THANK YOU!!! P.S. Somehow I knew I was going to feel like an idiot.... Edited January 9, 2012 by Jkeith247 Link to comment Share on other sites More sharing options...
FaridAgl Posted January 9, 2012 Share Posted January 9, 2012 Actually no, i can exactly understand your feeling. Glad to see you find your way. http://faridaghili.ir 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