gui.getListItemCount

Counts all items in a list.

Prototype

  1. nCount = gui.getListItemCount ( hComponent, [bFilteredItemsOnly=false] )

Parameters

hComponent - valid list item handle
bFilteredItemsOnly - true for filtered items only, false for all items, default false


Return values

nCount - number of list items 0..n


Sample

  1. function onMainViewAdditionalFileRemoveAll ( sPlatform, fCallback )
  2.  
  3. local hList = gui.getComponent ( "build."..sPlatform..".input.files.additional" )
  4. if ( hList ) then
  5. if ( gui.getListItemCount ( hList ) > 0 ) then
  6. -- do stuff

Available since ShiVa 2.0