[20 Sep 2009] nested tables

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

[20 Sep 2009] nested tables

Post by GMKai »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 20 Sep 2009 16:15:14 +0200

Hello,

I am currently reworking the way my program access tables. I have a file containing an array of tables. How can I access nested tables from an array?

Code: Select all

    /*load tables from file*/
    t_imp = ReadTable(1)
    CloseFile(1)
    t_IMPreferee    = t_imp[1]
    t_IMPclub       = t_imp[2]
    t_IMPplayer     = t_imp[3]
    t_IMPcoach      = t_imp[4]
    t_IMPleague     = t_imp[5]
    t_IMPnation     = t_imp[6]
    t_IMPevent      = t_imp[7]  
Now I can handle t_IMP... but it would be wiser to handle tables going from t_imp[X] any advice on this?
Locked