# .SubCollection

This virtual class is the parent class of every collection of sub-objects.

It is only intended for internal use inside native components.

This class is virtual. You cannot use it as a datatype.

This class is not creatable.

This class acts like a read-only array.

`DIM hSubCollection AS .SubCollection DIM anObject AS Object anObject = hSubCollection [ Key AS String ]`

Returns a sub-object from its key.

This class is enumerable with the FOR EACH keyword.

`DIM hSubCollection AS .SubCollection DIM anObject AS Object FOR EACH anObject IN hSubCollection ... NEXT`

Enumerates all sub-objects included in the collection.

Properties |  | Methods |
--- | --- | --- | ---
Count Length |  | Exist |