ArrayList: Remove

Remove

Removes a value from the list.



 Public Sub Remove(
	  ByRef Value As Variant,
	  Optional ByVal Comparer As IComparer )

Parameters

Value
[ByRef] Variant. The value to be removed.
Comparer
[ByVal] Optional. IComparer. A custom comparer used to find the value.

Remarks

If the value is an object, then it must be the same instance of the object to be removed. This behaviour can be overriden with a custom comparer.

When removing an item, the remaining items maintain there current order relative to the other items.

See Also

Class ArrayList Overview ArrayList Properties ArrayList Methods NewEnum RemoveAt