Arbortext Command Language > Functions by Alphabetical Listing > dlgitem_set_list_count
  
dlgitem_set_list_count
dlgitem_set_list_count(window, dlgitem, count)
Sets the number of items in the list associated with dlgitem in window to count. If successful, the function returns a one (1). Returns (-1) if the item does not have an associated list; dlgitem may also refer to a list tag (in outline lists).
The window parameter is a window identifier. dlgitem is the value of the control's id attribute. The count parameter is an item count
Notes
Calling this function has the same effect as calling the dlgitem_set function on the LIST_COUNT attribute of the dialog item. The list will be shortened or lengthened as needed.
When used on the root of an outline list item, sets the count of the top-level list tag of the list.
Example
$ret = dlgitem_set_list_count($win, "Cars", 3)
Sets the number of items in the Cars dialog item to 3.