Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_InteractInteraction

Public Function ObjectCollection_Add (
ObjectToAdd As Object,
KeyString As String
) As String

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.

ObjectToAdd as Object

Object to add to the collection.

KeyString as String

The string to use for lookup in the collection. A new unique string is generated if this parameter is empty.

Call Template:

Dim s As String
s = xf.Interact.ObjectCollection_Add(ObjectToAdd, KeyString)

See Also:

Example 1:

id = ObjectCollection_Add(thisForm, "")
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd