Field-Map Scripting

4.5.1.23 Delimiter

Delimiter property


Prototype:

property Delimiter :char;

Description:

Delimiter property contains a separator between strings in the StringList.

Syntax:

variable := StringList.Delimiter;


Part

Description


variable

A variable declared as a char


StringList

A reference to an instance of a TStringListWrapper

Return value:

a char represents a separator



Example:


var

 strList1 : TStringListWrapper;

 t, s : string;


begin

 strList1 := CreateStringList;


 strList1.BeginUpdate;

 strList1.Add('Picea');

 strList1.Add('Fagus');

 strList1.Add('Pinus');

 strList1.Add('Larix');

 strList1.Add('Abies');

 strList1.EndUpdate;


 s:= strList1.Delimiter;


 t:= strList1.Text;


 ShowMsg('Delimiter is ' + s);


 strList1.Free;

end.



Output in Field-Map Data Collector:



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