gui.getComboBoxItemCount
Counts all items inside a comboBox.
Prototype
nCount = gui.getComboBoxItemCount ( hComponent )
Description
Counts all items inside a comboBox.
Parameters
hComponent - valid GUI comboBox handle
Return values
nCount - number 0..n
Sample
function onMainViewLoadConfigurations ( ) local hComponent = gui.getComponent ( "toolbar.config" ) if ( hComponent ) and ( gui.getComboBoxItemCount ( hComponent ) == 0 ) then gui.appendItem ( hComponent, "Default" ) end -- etc.
Available since ShiVa 2.0