From RAD Studio API Documentation
Jump to: navigation, search


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


HIDESBASE bool __fastcall Equals(TStrings* Strings);


Type Visibility Source Unit Parent
function public
System.Classes TStrings


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

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.

See Also