You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > SetInteger Method > Vector.SetInteger Method (boolean, array of Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.SetInteger Method (boolean, array of Integer)

Sets vector values (integer).

Pascal
function SetInteger(AComplex: boolean; const A: array of Integer): TVec; overload;

Sets the Length property of the calling vector to (High(A)+1) and the Complex property to AComplex. The integer elements of A array are copied to the calling vector. If AComplex is True then real parts of complex numbers are on even (0,2,4..)and imaginary parts on odd indexes.(1,3,5,..)

Use this method for integer array only.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!