Advertisement
2002ASP VB function enhancement #257

Mike's VirtualListbox!

The reason i wrote this class and project demo was because the vb listbox control is a great, fast and easy way of storing large amounts of information in memory and then being able to retreive that info after from an organized list w/indexed items etc. But.. What you will see in this class is the exact same thing as the vb listbox control except for the activex control interface of course (not a bad idea if you wanted to make one with this class). I also wrote functions in this class that arent included within the vb listbox control, such as RemoveDuplicates, ResizeList, RemoveItemByString, and FindItem. This class is faster than vbs listbox because the vb listbox is a memory hog (when it's listcount is in the thousands) because of the graphic routines and cause of this its slow as well. Im only saying this based on using the vb listbox control for just storing information and then retrieving it after, Im not saying the control in general, its great for use in programs, but if all your using it for is to store info, like i said earlier, then this is a better substitute since it's just code based. The great part about this is you can just keep adding functions and your own routines or modify mine to your own liking. What you can learn from this class is the following: (1) How to use and create property functions in classes such as Property Get or Property Let. (2) How to use arrays and their features in vb, such as UBound and LBound, redeclaring arrays, and how to preserve them as well. This is a great class and i hope if you havnt voted for this yet on planetsourcecode.com, then please do if you find this a good replacement for storing information or just in general rather the vbs sluggish listbox control, Heck, all this needs is a activex control added and it would be a new listbox control ;]

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine