Need to exit loop early
- From: "Jo Winchester" <JoWinchester@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 Aug 2005 03:23:02 -0700
Hopefully this is a straight forward question.
I have a script that reads a file one line at a time, and carries out
ceratin actions depending on what it reads on each line. The script uses a
Do Until....Loop, using
Do Until objTextFile.AtEndOfStream
Loop
I need to add error checking, so that if a set action to be carried out by
the script has an err.number <> 0, the loop will ignore the rest of the loop,
and continue to the next line of the text file that it is reading. So, what
I need to the command to end one "loop" early, but continue through remaining
loops. I'm sure it should be really simple, but I don't seem to be able to
get the syntax right.
.
- Follow-Ups:
- Re: Need to exit loop early
- From: Björn Holmgren
- Re: Need to exit loop early
- Prev by Date: Re: Vartype 8197 problem
- Next by Date: ASP/VBScript: How to suppress the submit button from the results of this code?
- Previous by thread: Call a function create in dotnet
- Next by thread: Re: Need to exit loop early
- Index(es):