Structure Arrays
jjames
Posts: 2,908
Is it possible to have a structure array? (Structures within structures.) I can't get it to compile. Grrr - this would be very helpful.
Ex:
Perhaps what I'm trying to accomplish is done another way?
Ex:
STRUCTURE struct_1 { CHAR Name[70] INTEGER Number } STRUCTURE struct_2 { CHAR Name[70] INTEGER Number } STRUCTURE struct_3 { CHAR Name[70] INTEGER Number } STRUCTURE struct_4 { CHAR Name[70] INTEGER Number } STRUCTURE struct_All[] { struct_1 ,struct_2 ,struct_3 ,struct_4 }
Perhaps what I'm trying to accomplish is done another way?
0
Comments
You can also have multi dimension arrays inside the structure.
Just another way to look at it.
Hmmm - I might like this one just a tad better. I can then set up constants instead of trying to remember what test[1] or test[5] is.