Set.equal Method [AX 2012]
Determines whether a set is identical to the current set.
The following example creates two sets of integers, adds some values to them, and then compares them to see whether the sets are the same.
{
Set is1 = new Set (Types::Integer);
Set is2 = new Set (Types::Integer);
;
is1.add(1);
is1.add(2);
is1.add(3);
is2.add(2);
is2.add(4);
if (is1.equal(is2))
{
print "The sets are equal";
pause;
}
else
{
print "The sets are not equal";
pause;
}
}
Community Additions
ADD
Show: