ComponentOne True DBInput Pro 8.0
Item Property (ChildrenCollection)

 

Reference> ChildrenCollection Object> ChildrenCollection Properties> Item Property (ChildrenCollection)

Item Property (ChildrenCollection)

The index specifies the position of a member of a collection either by position or by key.

Syntax

object.Item(Index)

Read-only at run time. Not available at design time.

Remarks

If a numeric expression was specified, index must be a number from 1 to the value of the collection's Count property. If a string expression was specified, index must correspond to the key argument specified when the member referred to was added to the collection.

When a key is used to retrieve a member object, and the specified key cannot be found, the error notification will be sent from the control.

The Item() property is the default property for the collections. Therefore, the following lines of code are equivalent:

Set obj = Calendar.AttribStyles(1)

Set obj = Calendar.AttribStyles.Item(1)

An object cannot be assigned without defining a unique key. Also, it cannot be assigned to an existing object within the collection.

See Also

Count Property (ChildrenCollection)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback