dlgitem_get_list_count
dlgitem_get_list_count(window, dlgitem)
Returns the number of items in the list associated with dlgitem in window. 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.
Notes
Calling this function has the same effect as calling the dlgitem_get function on the LIST_COUNT attribute of the dialog item.
When used on the root of an outline list item, returns the count of the top-level list tag of the list.
Example
$ret = dlgitem_get_list_count($win, "Children")
Returns the number of items in the Children dialog item.