Re: Does this string processing work for you?



David Frank wrote:

<snip>

No it shud be 8 for same reason that the standard dictates that a do loop shall exit +1 to its do terminus count when run to completion and lots of code depends on that behaviour, this just repeats that KNOWN behaviour

But if a program exits from a loop prematurely, the loop index is the last value obtaining within the loop. Surely, that's the behavior you're trying to emulate. Unless you want to consider a premature end condition to be expected?

"We all have to go sometime... "  ;-)

<snip>

--
Cheers!

Dan Nagle
Purple Sage Computing Solutions, Inc.
.