Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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?

Posted

Alright i got it figured out, I just put the 2 loops into functions and had them call eachother on command.

Thanks for the help guys.

Posted

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
×
×
  • Create New...