|
Peter, I must be having a case of Fridayitis, but don't get it. AFAIK, unless the names are different you are only looking at a single instance at any particular point in time. Now arrays that have an index do allow you to compare two entries at a time, but still the same instance. You could replicate an array by overlaying a data structure but you would not have two instances nor elements from each array instance available at the same time. Or am I just locked into classic RPG thinking? I just had a thought, is there a method through pointers to mimic multiple dimensional arrays? Do you wind up changing all of your calculations to use pointers and base pointer off sets instead of field names? How ugly, although possible, would this get? Gads, I just had an assembler shiver run up my spine! It's going to take me all weekend to get over it. ;-) Peter Dow wrote: > Hi Barbara, > > I haven't done it myself, but from other posts on this list, it sounds like > it _is_ possible to use more than one occurrence at a time using pointers. > If you have an identically defined data structure based on a pointer, set > that pointer to the current occurrence of the multi-occurrence data > structure, then change the occurrence to something else and voila! you are > now looking at two different occurrences. > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.