VectorInt.SetIt Method

Overload List

#SignatureDescription
1function SetIt(const Index: Integer; const A: TIntegerArray): TMtxVecInt;Sets object values.
2function SetIt(const A: TIntegerArray): TMtxVecInt;Sets object values.

Overload 1: function SetIt(const Index: Integer; const A: TIntegerArray): TMtxVecInt;

Sets object values.

#NameTypeDescription
1IndexIntegerstart index
2ATIntegerArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Set object values. Method call does not change object's size, but it does check for array overrun. The elements of A array are copied to the calling object elements, starting at Index. The IntPrecision property of the calling object is not changed.

Overload 2: function SetIt(const A: TIntegerArray): TMtxVecInt;

Sets object values.

#NameTypeDescription
1ATIntegerArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Set object values. The size of the calling object is adjusted to match the length of the array. The elements of A array are copied to the calling object elements. The IntPrecision property of the calling object is not changed.