ArrayList: Insert

Insert

Inserts a value into the list at the specified index.



 Public Sub Insert(
	  ByVal Index As Long,
	  ByRef Value As Variant )

Parameters

Index
[ByVal] Long. The zero-based index in which the value is to be inserted.
Value
[ByRef] Variant. The value to be inserted into the list.

Remarks

When a value is inserted, all items starting at the insertion point are moved out by one space. If Capacity is reached, the list will be expanded.

See Also

Project CorLib Overview

Class ArrayList Overview