Field-Map Scripting

4.5.2.6 Count

Count function


Prototype:

function Count :integer;

Description:

Count function returns a number of values from the IntegerList.

Syntax:

variable:= IntegerList.Count;


Part

Description


variable

A variable declared as an integer


IntegerList

A reference to an instance of a TIntegerListWrapper

Return value:

an integer represents a number of values in the IntegerList



Example:


var

 intList : TIntegerListWrapper;

 v : integer;


begin

 intList := CreateIntegerList;


 intList.Add(2);

 intList.Add(4);

 intList.Add(8);


 v:= intList.Count;


 ShowMessage(IntToStr(v));


 intList.Free;

end.



Output in Field-Map Data Collector:



See also:

Free; Add; Clear; Assign; Delete; Count; IndexOf; SortAscending; SortDescending; SortAscendingAndRemoveDuplicates; Value; Delimiter; DelimitedText; AsVarArray