Andrew Falanga wrote:
Quote:
> Hi,
>
> As you might have guessed, both from this post and the one I made
> yesterday, I'm a VBScript neophyte. I'm looking on MSDN but, as yet,
> cannot find a construct such as 'continue' for loops. I'm assuming
> that many in this forum are familiar with languages like C or Java and
> will recognize this keyword.
>
> I need a way to start at the top of a For Each loop if a specific
> condition is met, but can't seem to find Continue. I shall keep
> looking while awaiting replies.
It sounds like either you want to Exit from the loop or are looking for the
Next statement.
For Each ...
If condition = True Then Exit For
Next
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)