| Programming - Components - OBCollection.cls |
VB 6
|
|
Onyx Box OBCollection
This object is a wrapped standard collection, that offers some
quick and easy to use methods similar to the Dictionary object provided
in the Scripting Runtime library.
These include...
- The 'Items' property which will return a variant array of containing
the items within the collection.
- The 'Exists' function, that will look for the existence of
a key or value within the collection.
- A 'Clear' method that clears the collection
- 'Push', 'Pop' and 'Fetch' and 'IsEmpty' properties that allow
you to use the collection in a similar way to a stack
- A 'LoadItems' method allowing the collection to be loaded with
items provided as a variant array
The object has been written with the intention of being included
in the OBKBld II DLL (Version 2.1 and above) until then the object
will be supplied as source only, so that it can be included in your
own projects. I hope you find it useful.
|
Downloads.
| File |
Description |
OBCollection.zip
(7k) |
The OBCollection.cls file and a
small test project.
(The test project requires OBugger to be installed,
however OBugger is not required by the OBCollection.cls itself) |
By using this code, you agree to the following
terms...
1) You may use this code in your own programs
(and may compile it into a program and distribute it in compiled format
for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this code (for example to a web site) without
written permission from the original author. Failure to do so is a violation
of copyright laws.
4) You must leave the entire header, contained within the source code,
in it's present form.
Thank you for respecting this.

Back|Home
|