gui.getListItemCount
Counts all items in a list.
Prototype
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
function onMainViewAdditionalFileRemoveAll ( sPlatform, fCallback ) local hList = gui.getComponent ( "build."..sPlatform..".input.files.additional" ) if ( hList ) then if ( gui.getListItemCount ( hList ) > 0 ) then -- do stuff
Available since ShiVa 2.0