Item is a Read-Only property that returns a member from a TimeIntervals collection, by name or by position. The return type is that of the object that the collection holds.
The Item property syntax has these parts:
|object||An object expression that evaluates to a TimeIntervals collection.|
|Index||An expression that specifies a member of the collection, as described in Settings.|
|LocaleIndependent||A boolean that indicates whether the passed index is in the current locale or not.|
The settings for Index are:
|number||Specifies the position number of a member of the collection. Must range from 1 to the value of the collection's Count property. (See Remarks for specifics.).|
|String||Specifies a collection member by name, usually the Name property of a member of the collection. (See Remarks for specifics.).|
The Item property is the default property of the collection, so these expressions have the same meaning:
In some collections, the position number of a collection member may change as new members are added.
In addition to generic errors (such as Out of Memory), the following errors may occur:
|tseNAMENOTFOUND||The specified interval name was not found.|
|tseOUTOFRANGE||The specified interval index was outside the number of items in the collection.|