PantZ4 Posted February 19, 2007 Share Posted February 19, 2007 Why does the func exitloop when you call another func? My func: While 1 $GUIMsg = GUIGetMsg() Select Case $GUIMsg = $GUI_EVENT_CLOSE GUIDelete() $GUIIsOn[1] = 0 _Exit() Case $GUIMsg = $SetChart Set_Chart() EndSelect WEnd What I want is that when the other func is called, I want that to finish and when continue the old loop again. But it seems like it call exitloop when I call another func...? Thank you (The other func does not intefere with the first.) Link to comment Share on other sites More sharing options...
Shevilie Posted February 20, 2007 Share Posted February 20, 2007 Well that should work... The problem must be in the Set_Chart.. try this for debugging While 1 $GUIMsg = GUIGetMsg() Select Case $GUIMsg = $GUI_EVENT_CLOSE GUIDelete() $GUIIsOn[1] = 0 _Exit() Case $GUIMsg = $SetChart Set_Chart() EndSelect WEnd MsgBox(0,0,"Exitloop") Well nbeed more code to check deeper Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
PantZ4 Posted February 22, 2007 Author Share Posted February 22, 2007 I founded the problem. In my Set_Chart function I forgot to add exitloop when the func was done. Stupid me, but thank you 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