You are here:
Symbol Reference >
MtxVecInt Namespace
>
Classes
>
TVecInt Class
>
public
>
Ramp Method
>
TVecInt.Ramp Method ()
MtxVec VCL
Example
TVecInt.Ramp Method ()
var
a:
TVecInt
;
begin
CreateIt
(a);
try
a.Size(5,prInt32); a.Ramp(0,2);
// [0, 2, 4, 6, 8]
finally
FreeIt
(a);
end
;
end
;
which is identical to:
CreateIt
(a);
try
a.Size(5,prInt32);
for
i:= 0
to
a.Length-1
do
a[i] := i*2;
finally
FreeIt
(a);
end
;
Copyright (c) 1999-2025 by Dew Research. All rights reserved.