You are here: Symbol Reference > MtxVecInt Namespace > Classes > TVecInt Class > public > Shift Method > TVecInt.Shift Method (TVecInt, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TVecInt.Shift Method (TVecInt, integer)

Do a shift on vector elements in range.

Pascal
function Shift(const Src: TVecInt; Offset: integer): TVecInt; overload;

Performs shift on all source vector elements and stores them to calling vector elements [Index .. Index+Len-1]. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative. 

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

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