ComponentOne True DataControl 8.0
Add Method (Constraints)

Adds a new item to the collection.

Syntax

collection.Add (Index)

Remarks

Method applies to NamedBookmarks, Constraints, Fields, FilterExpressions, Parameters, PropertyExpressions, and RangeConditions collections.

Arguments: Index is the integer ordinal position in the collection on which to place the newly created object. 

Return Value: A reference to the newly created object.

This method creates a new instance of the appropriate object, adds it to the collection, and returns it to the caller.

The newly created object’s properties have default values that you need to set in order to make the object useful. The newly created object is placed on the Index position in the collection, and all other items with collection indexes greater than or equal to Index are shifted up by 1 to create the place for the newly inserted item.

If Index is greater than or equal to Count (the number of items already in the collection), the new object is appended to the end of the collection.

 

 


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

Product Support Forum  |  Documentation Feedback