Item method from ADO

xiaoxiao2021-03-06  14

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)

转载请注明原文地址:https://www.9cbs.com/read-46786.html

New Post(0)