nested loop.

  • Thread starter Richard S Beckett
  • Start date
R

Richard S Beckett

Guys,

I have a while(1) loop, that contains another while(1) loop.

If I put a next command in the outer loop, everything is fine. As soon as I
added a next command to the inner loop, everything went wrong. Is the next
acting on the outer loop, rather than the inner one, and if so, how can I
make it act on the inner one?

Thanks.
 
R

Richard S Beckett

Ah! Found the problem!

Sorry.

(Because I was using a while(1) loop, I was manually incrementing my
counter, and when I inserted the next command, the counter was never
incremented, so the loop got stuck on the same operator. D'oh!)
 
A

A. Sinan Unur

Ah! Found the problem!

Sorry.

(Because I was using a while(1) loop, I was manually incrementing my
counter, and when I inserted the next command, the counter was never
incremented, so the loop got stuck on the same operator. D'oh!)

We are so happy for you. However, please read the posting quidelines
(available at http://mail.augustmail.com/~tadmc/clpmisc.shtml). Post code
instead of trying to verbally describe your code and then summarize your
problem if you want anyone else to be able to help you.

Sinan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top