Removes a member from a DEConnections or DECommands collection.
Syntax
object.Remove(index, Boolean)
The Remove property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an item in the Applies To list. |
index | An integer or string expression that specifies the index number of the DECommand or DEConnection object to remove from the collection. Use an integer to specify the value of the Index property; use a string to specify the value of the Key property. |
Boolean | Optional. A Boolean expression that specifies whether any warning messages display during the remove. If False, the default, no warning messages display. |
Remarks
For the DEAggregates, DEGroupingFields, and DERelationConditions collections, the Boolean is not used. Thus, for these three collections, the Remove method is the same as Visual Basic's Remove method.
When removing an object using the Data Environment Extensibility Object Model, first set the PromptDelete property to False to prevent the confirmation dialog box from appearing.