You are here:
Symbol Reference >
MtxExprInt Namespace
>
Classes
>
VectorInt Record
>
public
>
Sum Method
>
VectorInt.Sum Method ()
MtxVec VCL
VectorInt.Sum Method ()
VectorInt Record
|
VectorInt Members
|
MtxExprInt Namespace
|
Sum Method
|
Example
Collapse All
Sums vector values.
Pascal
function
Sum
: integer;
overload
;
Returns
the sum of all calling object elements.
Example
Uses
MtxVecInt
;
procedure
Example;
var
a:
TVecInt
; b: integer;
begin
CreateIt
(a); a.SetIt([1,2,3,4]); b := a.Sum;
// b = 10
FreeIt
(a);
end
;
Examples on GitHub
Group
Sum Method
Links
VectorInt Record
,
VectorInt Members
,
MtxExprInt Namespace
,
Sum Method
,
Example
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic?
Send feedback!