ITEM method
Returns a specific member of the collection based on the name or serial number.
grammar
Set Object = Collection.Item (INDEX)
return value
Return object reference.
parameter
Index variants, calculate the name or sequence number of the object in the collection.
Description
Use the ITEM method to return a specific object in the collection. If the method cannot find an object in a collection corresponding to the index parameter, an error will occur. At the same time, some collection does not support named objects, and for these collections, sequence number reference must be used.
The ITEM method is the default method of all collections; therefore, the following syntax form is interchangeable:
Collection.Item (Index)
Collection (INDEX)