Jump to content

Call func and auto exitloop?


PantZ4
 Share

Recommended Posts

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.)

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...