Page 1 of 1

[20 Sep 2009] nested tables

Posted: Sat Jun 13, 2020 5:32 pm
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?