Description | Hierarchy | Fields | Methods | Properties |
type unaStringList = class(unaRecordList)
List of strings.
constructor create(); |
|
function add(const value: string): int; |
|
function get(index: int): string; |
|
function indexOf(const value: string; exact: bool = true): int; |
|
function indexOfValue(const name: string): int; |
|
function insert(index: int; const value: string): int; |
|
function readFromFile(const fileName: wString): int; |
|
procedure setItem(index: int; const item: string); |
property name[constindex:int]: string read getName write setName; |
|
property text: string read getText write setText; |
|
property value[constindex:string]: string read getValue write setValue; |
constructor create(); |
|
function add(const value: string): int; |
|
Adds new string into list. |
function get(index: int): string; |
|
Returns a string by its index. |
function indexOf(const value: string; exact: bool = true): int; |
|
Performs a case sensitive (if exact is true) or not (if exact is false) search. Returns string index or -1 if specified string was not found. |
function indexOfValue(const name: string): int; |
|
function insert(index: int; const value: string): int; |
|
function readFromFile(const fileName: wString): int; |
|
Replaces content of text with data read from a file. |
procedure setItem(index: int; const item: string); |
|
Changes an item with specifiled index in the list. |
property name[constindex:int]: string read getName write setName; |
|
property text: string read getText write setText; |
|
property value[constindex:string]: string read getValue write setValue; |
|
(c) 2012 Lake of Soft