Difference between revisions of "TStringList"
(new page, god damnit) |
m (→Members) |
||
Line 29: | Line 29: | ||
| align="center" | no | | align="center" | no | ||
|- | |- | ||
− | | procedure[[TStringList.Append|Append]](S: string) | + | | procedure [[TStringList.Append|Append]](S: string) |
| | | | ||
| align="center" | no | | align="center" | no |
Revision as of 00:42, 13 August 2013
Inheritance
Description
Class used to store strings on a list.
Can be created with TFile.CreateStringList and TFile.CreateStringListFromFile
Don't forget to free the instance after using it!
User constructable: YES User destructable: YES
Members
Member declaration | Access mode | Inherited | |
---|---|---|---|
procedure Free | no | ||
function GetNamePath(): string | no | ||
function Add(S: string): Integer | no | ||
procedure Append(S: string) | no | ||
procedure AddStrings(Strings: TStrings) | no | ||
procedure Clear() | no | ||
procedure Delete(Index: Integer) | no | ||
function IndexOf(const S: string): Integer | no | ||
procedure Insert(Index: Integer; S: string) | no | ||
procedure LoadFromFile(FileName: string) | no | ||
procedure SaveToFile(FileName: string) | no | ||
procedure BeginUpdate() | no | ||
procedure EndUpdate() | no | ||
function Equals(Strings: TStrings): boolean | no | ||
procedure Exchange(Index1, Index2: Integer) | no | ||
function IndexOfName(Name: string): Integer | no | ||
procedure LoadFromStream(Stream: TStream) | no | ||
procedure Move(CurIndex, NewIndex: Integer) | no | ||
procedure SaveToStream(Stream: TStream) | no | ||
procedure SetText(Text: PChar) | no | ||
function AddObject(S: String; AObject: TObject): Integer | no | ||
function GetText(): PChar | no | ||
function IndexOfObject(AObject: TObject): Integer | no | ||
procedure InsertObject(Index: Integer; S: String; AObject: TObject) | no | ||
function Find(S: String; var Index: Integer): Boolean | no | ||
procedure Sort() | no | ||
property Count: Integer | R | no | |
property Text: String | RW | no | |
property CommaText: String | RW | no | |
property Strings[i: Integer]: String | RW | no | default |
property Objects[i: Integer]: TObject | RW | no | |
property Names[i: Integer]: String | R | no | |
property Values[i: Integer]: String | RW | no | |
property Duplicates: TDuplicates | RW | no | |
property Sorted: Boolean | RW | no | |
property OnChange: TNotifyEvent | RW | no | |
property OnChanging: TNotifyEvent | RW | no |