CopyFromArray

Declaration: TVector.CopyFromArray (SrcArray: TDoubleArray; Elem: integer);
The method CopyFromArray copies the cells of the dynamic array SrcArray into the vector. The parameter Elem specifies the first element to be used in the vector (the cell SrcArray[0] is copied to self[ELem], all other cells are copied to higher indices, see figure below).

If the source array does not fit into the vector all excess cells are ignored.