×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




RPG doesn't directly support multidimensional arrays but you can easily
produce the same result by using a regular array. For example, if you have a
3 dimensional array of  a X b X c you create an array with a*b*c elements.
To reference an individual element x,y,z use the formula ((x-1*a) + y) *
((z-1)* (a*b)). This what happens under the covers in other languages. 


Albert York                          
        

        -----Original Message-----
        From:   Hey Dac !!! [SMTP:dacruzado@xxxxxxxxx]
        Sent:   Friday, March 21, 2003 8:55 PM
        To:     RPG400-L@xxxxxxxxxxxx
        Subject:        Help! (Multidimensional Array)


        Hi people! :-Þ

        I haven't tried to use multidimensional array in RPG. I just want to
know if this is possible and if so, could you help me how to this. I would
appreciate your help. Thanks a heap!! 

         

         

         



        ---------------------------------
        Do you Yahoo!?
        Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
desktop!
        _______________________________________________
        This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing list
        To post a message email: RPG400-L@xxxxxxxxxxxx
        To subscribe, unsubscribe, or change list options,
        visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
        or email: RPG400-L-request@xxxxxxxxxxxx
        Before posting, please take a moment to review the archives
        at http://archive.midrange.com/rpg400-l.


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