method Components.Remove (Index as Variant)
Removes a specific member from the Components collection, giving its index or name.

TypeDescription
Index as Variant A Long expression that specifies the index of the Component to be requested, or a String expression that specifies the name of the Component to be requested.
The Remove method removes a component from the Components collection. The Clear method clears the Components collection. The Item property accesses the Component giving its index / 0 - based. The Count property indicates the number of components in the collection. The Item / Count properties can be used to enumerate the Components collection as well as for each statement. The Enumerate method enumerates the components in the collection whose name matches the giving mask.