|
Not only does it work well it can save you quite a bit of coding. You mentioned that you have quite a few of these sets of buckets. If the layout for each one is the same, and the processing is the same, you can set up an array of pointers, each of which points to the first element of a set. Then in a for-loop move a pointer out of the array into your based bucket array pointer, and do the processing. All your buckets handled with one processing loop. > -----Original Message----- > From: Michael Naughton [SMTP:mnaughton@xxxxxxxxxxxx] > Sent: Wednesday, September 10, 2003 3:47 PM > To: RPG programming on the AS400 / iSeries > Subject: Re: Mapping buckets in a record to arrays > > I've done this sort of thing, and it works fine. Pretty handy tool - and > one of the few really good uses I've found for pointers in RPG :-). > >
As an Amazon Associate we earn from qualifying purchases.
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.