Array question:
I've been using TCL, but this is the first time I've had a real use for arrays. I have rad the posts about multiple indexes, but what's the best,cleanest way to load and use an array with a single index and multiple data fields for each index? For example, I have data with employee number as key, and I want to load address, city, state, and zip as separate elements for each employee into an array. The data will be in simple text files that I have not built yet, so if there's some way I can set up the data to make coding simpler, I can do that too.
I've been using TCL, but this is the first time I've had a real use for arrays. I have rad the posts about multiple indexes, but what's the best,cleanest way to load and use an array with a single index and multiple data fields for each index? For example, I have data with employee number as key, and I want to load address, city, state, and zip as separate elements for each employee into an array. The data will be in simple text files that I have not built yet, so if there's some way I can set up the data to make coding simpler, I can do that too.