Difference between revisions of "TStringList"

From Soldat Community Wiki
Jump to: navigation, search
m (corrected Strings property type)
m (Members)
 
Line 134: Line 134:
 
| align="center" | no
 
| align="center" | no
 
|-
 
|-
| property [[TStringList.Strings|Strings]][name: String]: String
+
| property [[TStringList.Strings|Strings]][i: Integer]: String
 
| align="center" | RW
 
| align="center" | RW
 
| align="center" | no
 
| align="center" | no
Line 147: Line 147:
 
| align="center" | no
 
| align="center" | no
 
|-
 
|-
| property [[TStringList.Values|Values]][i: Integer]: String
+
| property [[TStringList.Values|Values]][name: String]: String
 
| align="center" | RW  
 
| align="center" | RW  
 
| align="center" | no
 
| align="center" | no

Latest revision as of 17:56, 24 August 2013

Inheritance

Description

Class used to store strings on a list.
Can be created with TFile.CreateStringList and TFile.CreateStringListFromFile

User constructable: NO
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[name: String]: String RW no
property Duplicates: TDuplicates RW no
property Sorted: Boolean RW no
property OnChange: TNotifyEvent RW no
property OnChanging: TNotifyEvent RW no