Collection Objects
-
Hello everybody, How can I implement navigation methods such as MovePrevious on collection objects in Visual Basic 6.0? Also, is there a fast way to search a collection object on some attributes of classes it stores, other than keys or ids? Regards, Roozbeh.
-
Hello everybody, How can I implement navigation methods such as MovePrevious on collection objects in Visual Basic 6.0? Also, is there a fast way to search a collection object on some attributes of classes it stores, other than keys or ids? Regards, Roozbeh.
Here are the options I know of: 1) You can write your own custom class that "inherits" the VB6 collection object. Of course VB6 doesn't really inherit, you simply wrap calls to the collection object with methods of your own class (is that a wrapper or a decorator...) 2) You can write a method of that class that searches through the collection for a particular value. 3) You can look around for a custom control or library written by someone else.