Hello,
I am trying to create a program that has an array of structures. To visualize, the structures would look like an excel spreadsheet of records. The indexing I need to do has to go from top to bottom, i.e. struct.member, plus go across with a method to index on the member. I can not use a 2-d array as the data types are mixed. That would have made a 2d indexing easy.
So far I've tried to create a variable that would index and then become a string, but is not accepted by the compiler as a valid meber identifier. The members of a structure record are basically some basic data plus 52 fields for the weeks of the year that I need to sequence across week1, week2, week3, etc. I need to do this for each record to do do some analytical functions based on time for each record and then put the result into that week of the year's "field" or struct.member.
My instinct tells me I am probably doing this all wrong, but.....it is seems logical that there is a database type routine to move around the 2d structure of records automatically by indexing.
Any assistance would be greatly received.
Thanks,
Bill
I am trying to create a program that has an array of structures. To visualize, the structures would look like an excel spreadsheet of records. The indexing I need to do has to go from top to bottom, i.e. struct.member, plus go across with a method to index on the member. I can not use a 2-d array as the data types are mixed. That would have made a 2d indexing easy.
So far I've tried to create a variable that would index and then become a string, but is not accepted by the compiler as a valid meber identifier. The members of a structure record are basically some basic data plus 52 fields for the weeks of the year that I need to sequence across week1, week2, week3, etc. I need to do this for each record to do do some analytical functions based on time for each record and then put the result into that week of the year's "field" or struct.member.
My instinct tells me I am probably doing this all wrong, but.....it is seems logical that there is a database type routine to move around the 2d structure of records automatically by indexing.
Any assistance would be greatly received.
Thanks,
Bill