IList: 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 from the list.
Comparer
[ByVal] Optional. IComparer. A custom comparer used for comparing values in the list to the value being sought.

Remarks

This method searches the list for the first instance of the value. If one is found, it is removed from the list.

See Also

Project VBCorLib Overview Class IList Overview IList Properties IList Methods Item (set) RemoveAt