SNIP
>Terry,
>PMFJI
>LOOP might be (hardly) avoided under all circumstances but I simply can't understand how a VFP coder can live w/o EXIT and multiple RETURNs provided cares for performance (not only VFP really).
>Never say Never:)
>Cetin
Cetin
NAAJIIYW
I can't see how a developer can live with himself with multiple returns! :-)
I've conceded that the odd *small* routine with a for... EXIT.. EndFor to, say, look up in a large list, could be tolerated and, indeed, as Tamor's research has shown, can be beneficial performance-wise. But why need loops? e.g:
Scan
If <condition>
LOOP
Endif
Meat
endscan
can easily be replaced with
Scan
If not <condition>
Meat
Endif
endscan
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.