CollectionIndex Property

   Applies To

Returns the position of a Field within its Fields collection, as indicated by a 0-based integer.

Syntax

SHORT GetCollectionIndex(VOID);

Remarks

A Field object in the Fields collection can be accessed by specifying its index. This property performs the inverse operation: the CollectionIndex property of a Field object yields its index in the collection.

Adding or deleting a Field will change the indexes of the other Field objects in the collection.