Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have implemented a class in VBA and I'm storing multiple instances of the
class in a collection. I would now like to sort the objects in the collection based on one of the class properties. Which property we sort by will be determined at run-time. I've written a procedure that can sort items in a collection but it relies on using binary operators (, <, =, ect) to rate one collection item against the next. That's all fine if you're only storing primitive types in the collection, I have a homogeneous collection of objects how can I compare one to the next? I have seen people implement an "=" method for a class in C#.net (no I can't remember how they did it), but can you do anything like that in VBA. - Rm |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
implementing help for UDF | Excel Discussion (Misc queries) | |||
Solver returns non binary answer in binary constrained cells | Excel Worksheet Functions | |||
Binary operations (left/right shift, binary and/or, etc.) | Excel Programming | |||
VBA & XL2K: Working with objects/class modules | Excel Programming | |||
new class w/ graphic objects | Excel Programming |