|
Tim Kredlo wrote:
>
> This is the complete line.
> I used the middle line of the following example from the RPG ILE reference
> manual. I was attempting to resize 'Dlr' from elements 1 to Idx, an integer
> that had been calculated previously.
>
> if (oldElems < dynArrInfo.current);
> %subarr(dynArr : oldElems + 1 : dynArrInfo.current - oldElems);
> endif;
>
Oops, there's an error in the manual.
That line should say
%subarr(dynArr : oldElems + 1 : dynArrInfo.current - oldElems)
= *blanks;
or
clear %subarr(dynArr : oldElems + 1 : dynArrInfo.current -
oldElems);
Your %subarr expression is really just an array, so your statement is
the equivalent of
array;
But you need something like this:
array = *blanks;
or
clear array;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.