Posted by William D McQuain on November 16, 2001 at 09:08:12:
In Reply to: Loop Output posted by CT on November 15, 2001 at 23:37:40:
: I'm having a problem with the "not found" messages that we're supposed to put in if the search doesn't find what it needs. I have it in the For loop and so each time it checks the array it either outputs the right info or the error message, over and over and over. How can I fix this?
OK, basic design issue. If you want some statement(s) to be executed repeatedly, you do what?
Put them inside a loop structure.
If you put some statement(s) inside a loop structure, then what?
They'll be executed repeatedly.
So, if you have some statement(s) that you DON'T want to be executed repeatedly, you don't put those statements....?
Post a Followup