Sign in to follow this  
Followers 0
PantZ4

Call func and auto exitloop?

3 posts in this topic

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 :whistle:

(The other func does not intefere with the first.)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

I founded the problem. In my Set_Chart function I forgot to add exitloop when the func was done. Stupid me, but thank you :whistle:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0