System.Classes.TStringList.Create
Delphi
constructor Create; overload;
constructor Create(OwnsObjects: Boolean); overload;
constructor Create(QuoteChar, Delimiter: Char); overload;
constructor Create(QuoteChar, Delimiter: Char; Options: TStringsOptions); overload;
constructor Create(Duplicates: TDuplicates; Sorted: Boolean; CaseSensitive: Boolean); overload;
C++
__fastcall TStringList()/* overload */;
__fastcall TStringList(bool OwnsObjects)/* overload */;
__fastcall TStringList(System::WideChar QuoteChar, System::WideChar Delimiter)/* overload */;
__fastcall TStringList(System::WideChar QuoteChar, System::WideChar Delimiter, TStringsOptions Options)/* overload */;
__fastcall TStringList(System::Types::TDuplicates Duplicates, bool Sorted, bool CaseSensitive)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStringList |
Description
Creates an instance of a TStringList object.
The Create constructor creates a new instance of the TStringList object.
Create has five overloaded methods:
- Takes no parameters.
- Accepts the
OwnsObjects
boolean parameter to specify whether the string list owns the objects or not. - Accepts the
QuoteChar
andDelimiter
parameters to create a new string list with the specified QuoteChar and Delimiter properties. - Accepts the
QuoteChar
,Delimiter
andOptions
parameters to create a new string list with the specified QuoteChar, Delimiter and Options properties. - Accepts the
Duplicates
,Sorted
andCaseSensitive
to create a new string list with the specified Duplicates, Sorted, CaseSensitive properties.