System.Classes.TStrings.ContainsName
Delphi
function ContainsName(const Name: string): Boolean; inline;
C++
bool __fastcall ContainsName(const System::UnicodeString Name);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
Checks whether a specified name part of a name-value pair, such as name=value, exists in the string list.
Particularly useful when using the TStrings to store key-value pairs using the name=value format. Only the name part gets evaluated.
Returns True if the name exists in the list, returns False if it is not.