You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > Equal Operator > VectorInt.Equal Operator (VectorInt, VectorInt)
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.Equal Operator (VectorInt, VectorInt)

Returns true, if Left and Right are of equal Length and Values.

Pascal
class operator Equal(const Left: VectorInt; const Right: VectorInt);
var a,b: VectorInt; c: TDoubleArray; begin c := TDoubleArray.Create(1,1,1,1,1); TVecInt(a).CopyFromArray(c); TVecInt(a).Copy(b); if a = b then ERaise('a and b are equal!'); if a = 1 then ERaise('a equals 1!'); //compare to real value if a = Cplx(1,0) then ERaise('a equals 1!'); //compare to complex value end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!