The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TVector, TIntVector
Declaration: procedure CopyFromArray (SrcArray: TDoubleArray; Elem: integer); { class TVector }
procedure CopyFromArray (SrcArray: TIntArray; Elem: integer); { class TIntVector }

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.

Last Update: 2017-Mai-14