Hey octothorpe, you`ve been most helpful mate.
As you say, I don`t really think I need the added complexity of linked lists, and it`d only add to the clutter of an already complex problem (bigger picture).
I like the idea of using "parent" fields so you can trace back given any player object - I hadn`t really thought about that before, and I`m not sure that situation will actually arise - but it`s good to have all bases covered.
I may implement the teamID idea, so if I am given any player (ie. player[1276]) I`ll be able to lookup the teamID associated to that player object, and instantly know what team he is at. Then same for team, they will have a leagueID, which will tell me which league they belong to, so traversing shouldn`t be a problem.
I actually did try the NULL thing (setting to null once I`ve copied it) but it calls an error when i was trying to output the values of [0,0,0] to screen, rather than printing nothing.
I got around it using this:
Does this cause any problems I`m not aware of, memory etc?
Thanks for your advice, time and effort...much appreciated :)
As you say, I don`t really think I need the added complexity of linked lists, and it`d only add to the clutter of an already complex problem (bigger picture).
I like the idea of using "parent" fields so you can trace back given any player object - I hadn`t really thought about that before, and I`m not sure that situation will actually arise - but it`s good to have all bases covered.
I may implement the teamID idea, so if I am given any player (ie. player[1276]) I`ll be able to lookup the teamID associated to that player object, and instantly know what team he is at. Then same for team, they will have a leagueID, which will tell me which league they belong to, so traversing shouldn`t be a problem.
I actually did try the NULL thing (setting to null once I`ve copied it) but it calls an error when i was trying to output the values of [0,0,0] to screen, rather than printing nothing.
I got around it using this:
;remove orig data Delete p\league[0]\team[0]\player[0] p\league[0]\team[0]\player[0]=New player
Does this cause any problems I`m not aware of, memory etc?
Thanks for your advice, time and effort...much appreciated :)