RAD Studio VCL Reference
TStrings.Equals Method

Compares the list of strings to the list from another TStrings object and returns true if the two lists match.

function Equals(Strings: TStrings): Boolean; reintroduce;
__fastcall Boolean Equals(TStrings Strings);

Call Equals to compare the lists in two TStrings objects. Equals compares only the strings, not any references to associated objects. Equals returns true if the lists for both TStrings objects have the same number of strings and the strings in each list match. Equals returns false if the lists are different in length, if they contain different strings, or if the order of the strings in the two lists differ.

Note: The Equals method uses an overridden Get method to perform the compare, thus it does not provide a context-insensitive option.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!