Re: how do people feel about exit function from loop
- From: "Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 22:24:17 -0400
Funny, that's the exact same thing I've said about Exit For, and exactly how
I feel about it. The fact that it makes your code a line or two shorter
isn't a reason to code it that way every time. Use it if you really need
it, but ALWAYS (never mind "most often"), there are ways around it anyway.
<g>
Rob
"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:OvwzL0lzHHA.4004@xxxxxxxxxxxxxxxxxxxxxxx
"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote in message
news:yYqdnVJqtIw8OjvbnZ2dnUVZ_gmdnZ2d@xxxxxxxxxxxxxx
I am not opposed to exit for, in fact I quite like Larry's solution to
the OP's task. But I often find that after the loop, I need to know why
it ended - found the thingy, or ran out of places to look. I am now jaded
enough to believe that even if I don't need it today, and can't see how I
ever would, eventually I will need to know it for some reason, so might
as well set it up that way. Sigh.
This is not a reason to code this every single time. Just add it when and
if you need it. Most often there are ways around it anyway.
Michael
.
- Follow-Ups:
- Re: how do people feel about exit function from loop
- From: Michael C
- Re: how do people feel about exit function from loop
- References:
- how do people feel about exit function from loop
- From: greg
- Re: how do people feel about exit function from loop
- From: Ken Halter
- Re: how do people feel about exit function from loop
- From: Jan Hyde (VB MVP)
- Re: how do people feel about exit function from loop
- From: Steve Gerrard
- Re: how do people feel about exit function from loop
- From: Michael C
- Re: how do people feel about exit function from loop
- From: Steve Gerrard
- Re: how do people feel about exit function from loop
- From: Michael C
- how do people feel about exit function from loop
- Prev by Date: Re: decouple gui from bo
- Next by Date: Re: how do people feel about exit function from loop
- Previous by thread: Re: how do people feel about exit function from loop
- Next by thread: Re: how do people feel about exit function from loop
- Index(es):
Relevant Pages
|