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



Thanks Scott,

See I knew I'd learn something. :)

Charles

On Thu, Jul 16, 2009 at 1:24 PM, Scott Klement<rpg400-l@xxxxxxxxxxxxxxxx> wrote:
Hi Charles,

Charles Wilt wrote:
I really don't see where it is necessary to set the variable to it's
maximum length as shown.
%len(Input_String) = %size(Input_String)-VARPREF    (VAPREF is 2)

If you increase the length of a VARYING field, for example if the length
is 5, and you do %len(field)=10, RPG will automatically blank out the 5
characters it just added.

That's why you have to set the field to it's maximum length beforehand,
otherwise RPG will blank out the characters you just received.


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.