"itemCount"

Returns the number of list items.

Synopsis

setValue(string shape, "itemCount", int &res);

shape.deletePos();

Parameters

Parameter Description
shape Name of the object
res Result variable

Description

Returns the number of items in the list.

Example

Outputs the number in the Log viewer.

 main()
{
  shape list1=getShape("selectionlist1");
  DebugN("Number: ", list1.itemCount()); // Result
}

Assignment

Selection list