"itemCount"

Returns the number of options.

Synopsis

getValue(string shape, "itemCount", int &num);

shape.itemCount();

Parameters

Parameter Description
shape Name of the object
num Number of options

Description

Returns the number of items within the object.

Example

 main()
{
  shape cb=getShape("COMBO_BOX1");
  int i, n;
  dyn_string ds;
  // Read all items
  getValue(cb, "items", ds);
  // Number of items
  n=cb.itemCount();
  // Outputs all items with numbers
  for (i=1; i<=n; i++)
  DebugN("Eintrag Nummer "+i+": "+ds[i]);
}

Assignment

Combo box, Radio Box, Check Box