type alist
word as string
rank as integer
ltr(4) as string
u as integer
end type
I attach a small Calc sheet with an example BASIC macro that copies some cells into the type example, then writes the type data into some other cells, as a demo. So that works, but my goal is to load a lot of data into an array consisting of several such types. I have tried several variations of getting the type fields into an array with no success.
I am aware of Mr. Andrew Pitonyak's statement in OOME_4_1: "Although user-defined types cannot directly contain an array, you can manage them in a variant type." Since my attached example includes an array element within the type, which works in the example sheet, I am not sure what he meant.
If anyone has any ideas about defining an array of types, thanks for the help. If this has been covered elsewhere (I did search), feel free to call me a dumbass but point me to it. Thanks.
Edit: Changed subject, was type & array Make your post understandable by others -- MrProgrammer, forum moderator |