>>>I agree entirely. I consider EXIT and LOOP to be bugs until proven otherwise :-) Almost without exception, it's an indication that the coder hasn't thought the logic through clearly, making the entire structure suspect.
>>
>>I think this statement would be better qualified. For DO WHILE loops, I _ususally_ agree. But IMO, EXIT and LOOP have valid uses in FOR EACH and SCAN loops.
>
>Hmmm... I've *never* had to use them in those constructs (or at all, for that matter). Are you saying there are times you *must* use them to implement logic, or that they might be simpler to use in some circumstances?
They are almost never _necessary_, but are often the only way to short circuit a loop for performance reasons.
Erik Moore
Clientelligence