Public Function ObjectCollection(KeyString As String) As Object
Retrieves an object from the collection by key.
If a numeric ID is passed, it is coverted to a string prior to lookup.
Global Object Collection
ObjectCollection - a global collection of references to objects used for (a) passing an ID as string in form openargs and retrieving PassArgs object (b) opening multiple instances of the same form simultaneously (see http://allenbrowne.com/ser-35.html)
Retrieves an object from the collection by key.
If a numeric ID is passed, it is coverted to a string prior to lookup.
Add an object to the collection.
Uses the passed ID, or generates a new ID by generating a Unique ID, casting to a string and prefixing with the string 'obj'.
This ensures a hashed lookup (VBA collection hashed lookups are always of type string) If a numeric ID is passed, it is coverted to a string prior to key lookup. Returns the IDString used.
Get a Unique Key to represent an object in the collection
Removes an object from the collection.
If a numeric ID is passed, it is coverted to a string prior to lookup.