You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > SetVal Method > TMtxVecInt.SetVal Method (integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.SetVal Method (integer, integer, integer)

Set all calling object elements [Index]..[Index+Len-1] to Value.

Pascal
function SetVal(Value: integer; Index: integer; Len: integer): TMtxVecInt; overload;

An exception is raised if array borders are overrun/underrun.

Uses MtxVecInt; procedure Example; begin CreateIt(a); try a.SetIt(1,2,3,4]); a.SetVal(5,2,2); // a = [1,1,5,5] finally FreeIt(a); end end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!