I SO much prefer using the pointer method! Once you get past thinking
pointers are some sort of tool of the devil it is so much easier.

For example, let's say IBM announced the rNext of the OS would no longer
support simple addition in RPG. Any new compiles would have to replace
x=PerformAddition(y : z : '1' : ErrCde);
where the third parameter was whether or not to allow truncation if the
sum of y + z was greater than the size of x, and the fourth parameter was
the standard error code.
Wouldn't that be nuts?
Then why would anyone prefer calling QUSCHGUS over
myChar char(10) based(pmyChar);
for x = 1 to ListNumber;
pmyChar=Initial + (OffsetSize * x);
dsply myChar;

Rob Berendt

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].