CopyToArray

Declaration: TVector.CopyToArray (var DestArray: TDoubleArray; LowElem, HighElem: integer);
The method CopyToArray copies the cells of the vector in the range from [LowElem] to [HighElem] to the dynamic array DestArray. The size of the destination array is automatically adjusted to the size of the specified range.

Hint: Setting both LowElem and HighElem to zero values is a shortcut for copying all cells of the vector.