Home Units Hierarchy Routines All identifiers

Class unaWideStringList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaWideStringList = class(unaRecordList)

Description

List of wide strings.

Hierarchy

Overview

Methods

Public function add(const value: wString): int;
Public function get(index: int): wString;
Public function indexOf(const value: wString; exact: bool = true): int;
Public function indexOfValue(const name: wString): int;
Public function readFromFile(const fileName: wString): int;
Public procedure setItem(index: int; const item: wString);

Properties

Public property text: wString read getText write setText;
Public property values[constindex:wString]: wString read getValue write setValue;

Description

Methods

Public function add(const value: wString): int;

Adds new string into list.

Public function get(index: int): wString;

Returns a string by its index.

Public function indexOf(const value: wString; 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.

Public function indexOfValue(const name: wString): int;
 
Public function readFromFile(const fileName: wString): int;

Replaces content of text with data read from a file.

Public procedure setItem(index: int; const item: wString);

Changes an item with specifiled index in the list.

Properties

Public property text: wString read getText write setText;
 
Public property values[constindex:wString]: wString read getValue write setValue;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09