Summary
Copy object values.
Class
TMtxVec
Declaration
Function Copy(Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec;
Description
Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1]. Size and
Complex properties must be set explicitly. An exception is raised if
ConditionCheck is True and array borders are overrun or underrun.
Declaration
Function Copy(Vec: TMtxVec): TMtxVec;
Description
Copy each of Vec elements to the calling object. Size and
Complex properties of the calling object are set implicitly to match Vec object.
Example 1
var a,b,c: TVec;
begin
CreateIt(a,b,c);
try
a.SetIt(True,[1,2,3,4]); // a = [1,2,3,4]
b.Copy(a); // b = [1,2,3,4]
c.Copy(a,b); //concatenate a and b and store in c = [1,2,3,4,1,2,3,4]
finally
FreeIt(a,b,c);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com