You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Resize Method > Vector.Resize Method (integer, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Resize Method (integer, boolean)

Resizes calling vector Length to Len.

Pascal
function Resize(Len: integer; ZeroIt: boolean = False): TMtxVec; overload;

If Length is less than Len and ZeroIt parameter is true, the remaining calling vector values are set to zero.

var a: Vector; begin a.SetIt(false,[1,2,3]); a.Resize(7,True); // a= [1,2,3,0,0,0,0] end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!