Re: Does this string processing work for you?
- From: "David Frank" <dave_frank@xxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 11:32:04 GMT
"Dan Nagle" <dannagle@xxxxxxxxxxx> wrote in message
news:f3Q_e.14660$TQ3.7362@xxxxxxxxxxx
> 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.
NO, thats NOT the behavior were trying to emulate, we are emulating a normal
do loop that has successfully ended processing all available items with no
problems encountered (because we setup a known string with a built-in
terminus)..
> Unless you want to consider
> a premature end condition to be expected?
>
To re-iterate, the ERR=exit is ALWAYS taken with a intact loop index +1 to
last valid item decoded/stored,
the err is expected because we setup a known error condition at string end,
with a blank pad // char(0)
.
- Follow-Ups:
- Re: Does this string processing work for you?
- From: Arjen Markus
- Re: Does this string processing work for you?
- References:
- Does this string processing work for you?
- From: David Frank
- Re: Does this string processing work for you?
- From: Herman D . Knoble
- Re: Does this string processing work for you?
- From: David Frank
- Re: Does this string processing work for you?
- From: Arjen Markus
- Re: Does this string processing work for you?
- From: David Frank
- Re: Does this string processing work for you?
- From: Dan Nagle
- Does this string processing work for you?
- Prev by Date: Re: Does this string processing work for you?
- Next by Date: Re: Does this string processing work for you?
- Previous by thread: Re: Does this string processing work for you?
- Next by thread: Re: Does this string processing work for you?
- Index(es):
Relevant Pages
|