System.Classes.TStrings.Equals
Delphi
function Equals(Strings: TStrings): Boolean; reintroduce;
C++
HIDESBASE bool __fastcall Equals(TStrings* Strings);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
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.