Remove Method

Removes a member from the specified collection.

Syntax

object.Remove lIndex

Properties

The Remove method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

lIndex

Long. An expression that specifies the position of a member of the collection. If a numeric expression, index must be a number from 1 to the value of the Collection's Count property.

DataItems and Groups Collection Syntax

object.Remove vtIndex

Properties

The Remove method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

tIndex

Variant. An expression that specifies the position of a member of the collection. If a numeric expression, index must be a number from 1 to the value of the Collection's Count property. If a string expression, the index is the object name.

 

Example

Applies To