ArrayList: CopyToEx

CopyToEx

Copies a specified number of the items to an Array.

 Public Sub CopyToEx(
	  ByVal Index As Long,
	  ByRef DstArray As Variant,
	  ByVal ArrayIndex As Long,
	  ByVal Count As Long )

Parameters

Index
[ByVal] Long. The starting index in the list to start copying from.
DstArray
[ByRef] Variant. The array to copy the items to.
ArrayIndex
[ByVal] Long. The index in the destination array to start copying items to.
Count
[ByVal] Long. The number of items to copy.

Remarks

The destination array must be large enough to hold the number of elements being copied.

See Also

Project VBCorLib Overview | Class ArrayList Overview