Gah!
Okay, I have a structured set of data and I need to create collections or dictionaries of instances of these sets and I can do this with classes. In fact I have done this. It works.
But I'm looking at that list of modules and realizing how far I have to go in this project and asking why in hell can't I just pass a UDT as the item to a collection?
That's all I want - I don't need the framework of an entire class, and don't want the overhead here - because I don't need anything but the data structure. When I try to use a UDT I get a compile-time error message about assigning UDT's to late-bound objects and public object modules - enough to make me think there's a way around this here - an attribute hack or something - that I don't know about.
I could use arrays, but then I lose any meaning except the array index, and I've have to use an ENUM to create meaning for the array indices and make damn sure nothing every corrupted the array structures and... ugh!...
Given that I'm stuck in VBA and Excel for the time being (so no C or Python --don't I wish!-- smart-ass comments thankyouverymuch) am I missing something? Is there a way to get a collection or dictionary object to accept a variable of user-defined type as an item? Enquiring minds want to know!
Dan Esch
Okay, I have a structured set of data and I need to create collections or dictionaries of instances of these sets and I can do this with classes. In fact I have done this. It works.
But I'm looking at that list of modules and realizing how far I have to go in this project and asking why in hell can't I just pass a UDT as the item to a collection?
That's all I want - I don't need the framework of an entire class, and don't want the overhead here - because I don't need anything but the data structure. When I try to use a UDT I get a compile-time error message about assigning UDT's to late-bound objects and public object modules - enough to make me think there's a way around this here - an attribute hack or something - that I don't know about.
I could use arrays, but then I lose any meaning except the array index, and I've have to use an ENUM to create meaning for the array indices and make damn sure nothing every corrupted the array structures and... ugh!...
Given that I'm stuck in VBA and Excel for the time being (so no C or Python --don't I wish!-- smart-ass comments thankyouverymuch) am I missing something? Is there a way to get a collection or dictionary object to accept a variable of user-defined type as an item? Enquiring minds want to know!
Dan Esch