× 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.



It's not the endposition of the string. It's the length of the string.
In this case it should be nEndPos = 10

%subst(string:start{:length})

Regards,
Leif
----- Original Message -----
From: "Phil Kestenbaum" <pkestenbaum@xxxxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: 4. juni 2007 14:57
Subject: %subst problem


This statement is blowing up. However during a debug, I have values in
both nStartPos anf nEndPos and they appear to be correct, 30 and 39,

This is where we get an invoice number. J8_Comment has contents and they
are what they should be. I am not sure what is wrong at this point.



eval J8_Comment = %subst(J8_Comment : nStartPos

nEndPos)




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.