Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Skipping current iteration of a VBScript For Loop

Status
Not open for further replies.

humbletech99

Programmer
Nov 22, 2005
155
GB
Is there a VBScript equivalent of "Continue" within a For Loop?

I need to skip only 1 iteration.
 
Under what conditions do you want to skip?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
there are several conditions.

In fact, I really need another For loop inside the current on to skip if one string equals any of the strings in an array...
 
Use a vbscript dictionary object to make it easier to check if it exists.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
ah yes that is a very good idea, thanks. I guess vbscript arrays are too weak so I should use a dict using keys as the things I want to store and blank keys...

I'd still like to know of some way to do a "Continue" operation in a loop but from what google has told me so far, it looks like this may not be possible in vbs...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top