Jump to content

How to return to a loop?


Recommended Posts

Hello, I'm new to this forum and i have a question.

Is there a way to return to a loop?

For instance if i wanted to return to another while statement.

Is this possible? and if not then are there any alternatives?

Thanks in advance.

Link to comment
Share on other sites

The reason for leaving the loop is to enter another loop.

The loop i'm using is a While statement.

What i'm trying to do is go from a loop for a GUI, to a loop for a Tray Icon. However i want to be able to switch back to the GUI on command.

Link to comment
Share on other sites

use a separate function with a loop in it and call that?

Link to comment
Share on other sites

The reason for leaving the loop is to enter another loop.

The loop i'm using is a While statement.

What i'm trying to do is go from a loop for a GUI, to a loop for a Tray Icon. However i want to be able to switch back to the GUI on command.

Depending on how you exit one loop to enter another, it should return back to the original loop... It sounds like you are just nesting two loops deeper and deeper, but can't be certain really.

Do you have an example or not?

Link to comment
Share on other sites

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