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



Rick,

Yes, you can access each overlay field as an array (with subscripting).
Better yet, SORTA Array2 will sort the contents on $CTData in Array2 order.
That means you can sort a datastructure dynamically on any subfield.  Pretty
nifty for Subfile displays.  Oh, make sure to add an "INZ(*All'9')" and
"Ascend" to $CTData (base array) if you intend to have a varying number of
rows in the data-set.  That keeps unused records in the array at the end
(and out of the way) after you SORTA.

Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-898-7863 or ext. 1863



> -----Original Message-----
> From: Richard B Baird [mailto:rbaird@esourceconsulting.com]
> Sent: Thursday, July 25, 2002 8:22 AM
> To: rpg400-l@midrange.com
> Subject: RE: Arrays
>
>
>
> Eric & Rob,
>
> That's cool! I assume that because you mapped your overlays
> to an array, it
> turns those field names into arrays too without having to 'dim' them?
>
> and you can reference those fields with subscripting?
>
> ahhh, the things you learn.
>
> rick
>
> -------code snippet-------
> D $Array          DS
> D   $CTData                           CTDATA
> D                                     Dim(5)
> D
> D   $Array1                      5S 0 Overlay($CTData:1)
> D   $Array2                      6A   Overlay($CTData:*Next)
> D   $Array3                      5S 0 Overlay($CTData:*Next)
>
> **
> 12345ABCDEF98765
> 12345ABCDEF98765
> 12345ABCDEF98765
> 12345ABCDEF98765
> 12345ABCDEF98765
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.