BitArray: CopyTo

CopyTo

Copies the internal bit-array to a compatible array.



 Public Sub CopyTo(
	  ByRef DstArray As Variant,
	  ByVal Index As Long )

Parameters

DstArray
[ByRef] Variant. The array to copy the values to.
Index
[ByVal] Long. The starting position in the array to begin copying to.

Remarks

CopyTo supports the copying to three array types: Long, Byte and Boolean. When copying to Long or Byte type arrays, the bits in the elements are equivalents to the bits in the BitArray. When copying to a Boolean array, each boolean element represents a single bit in the array.

See Also

Project VBCorLib Overview Class BitArray Overview BitArray Properties BitArray Methods Clone Count (get)