Richard
Sat Mar 22 12:06:09 CDT 2008
"Robbie Flower" <rflower@hotmail.com> wrote in message
news:104f6a3f1b8e8ca5a85f8127d1a@msnews.microsoft.com...
>
> I've been instructed by a dot net / asp programmer that Exit Do is not a
> great way to end a loop.
>
> Can someone explain to me if this is so, or does this only apply to higher
> level programming languages ?
>
> I am using nested loops and need to exit out of one loop into another for
> something to apply. Any other functional ways of doing this ?
>
> Cheers,
>
>
I agree that Exit Do statements are fine. Same for Exit For, Exit Sub, and
Exit Function. They are much better than GoTo statements (which aren't
allowed). I personally prefer them to conditional statements because they
are easier to read.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab -
http://www.rlmueller.net
--