× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, Oct 15, 2014 at 4:20 PM, Ken Sims <mdrg8066@xxxxxxxxxxx> wrote:
On Wed, 15 Oct 2014 13:18:00 -0400, John Yeung
<gallium.arsenide@xxxxxxxxx> wrote:

No, %SUBST is fine with zero length, and it says so right in the manual.

Actually I had in mind the %SUBSTs where the starting position is
spos+1.

Well, I was responding to Rob, who said he thought %SUBST would fail
on zero length. There's no problem if '@' is the first character.

You're right that the code fails for '@' in the rightmost character,
though with certain additional conditions. It has to be the only '@'
in the whole field, and it has to be the very last possible character
in the field (so in a 50-char field, it would have to be in position
50, and all other 49 characters would have to be something else). In
this case, it would never make it to %SUBST because it would have
already failed on %SCAN (which is probably what you meant, because
that's what has the spos+1 starting position).

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.