VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

ObjectCollection

Vesa Piittinen  (20 Submissions)   VB function enhancement   Advanced   Wed 3rd February 2021

This is a Collection replacement, limiting itself to objects. This is mostly a usable "technology demo", showcasing how to create a feature full syntax compatible replacement of a Collection. By speed this class only competes in a few areas, being much slower in adding new items for an example. Maybe someone takes this over and makes a syntax compatible version that is much faster. **** Features: Add, Clear, Clone, Count, Index, IndexByPtr, Item, ItemByIndex, ItemByKey, ItemByPtr, Items, Key, KeyByPtr, Keys, Ptrs, Remove, RemoveByIndex, RemoveByKey, RemoveByPtr, Swap, SwapByIndex, SwapByKey and SwapByPtr. As you can guess by this listing of features, you can do a whole lot more than you can do with the native Collection (which only has Add, Count, Item and Remove). **** Based on SelfEnum class posted yesterday. Credits to Paul Caton and LaVolpe for their work on SelfCallback.

Rate ObjectCollection (3(3 Vote))

Download ObjectCollection

ObjectCollection Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters