Jkeith247 0 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? Share this post Link to post Share on other sites
JohnOne 1,603 Posted January 9, 2012 Call() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
TheGeneral 0 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. Share this post Link to post Share on other sites
Jkeith247 0 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 Share this post Link to post Share on other sites
FaridAgl 48 Posted January 9, 2012 Actually no, i can exactly understand your feeling. Glad to see you find your way. http://faridaghili.ir Share this post Link to post Share on other sites