Field-Map Scripting

4.5.1.7 Add

Add function


Prototype:

function Add(const S :string) :integer;

Description:

Add function adds a string parameter to the StringList.

Syntax:

variable:= StringList.Add(S);


Part

Description


variable

A variable declared as an integer


StringList

A reference to an instance of a TStringListWrapper


S

A string parameter to be added to the StringList

Return value:

an integer represents allocated index position



Example:


See chapters BeginUpdate, Assign, Clear ...



See also:

Free; Duplicates; Sorted; CaseSensitive; BeginUpdate; EndUpdate; Add; AddStrings; Assign; Clear; Delete; Count; Exchange; Move; Find; IndexOf; Insert; Sort; LoadFromFile; SaveToFile; Strings; Text; Delimiter; DelimitedText; NameValueSeparator; IndexOfName; Name; Value; AsVarArray