gui.insertComboBoxItems
Insert multiple empty items into a comboBox.
Prototype
tComboBoxItems = gui.insertComboBoxItems ( hComponent, nIndex, nCount )
Description
Inserted items are empty and must subsequently be filled.
Parameters
hComponent - valid GUI comboBox handle
nIndex - index number 1..n of where you want to insert the items
nCount - number of how many items you want to insert 1..n
Return values
tComboBoxItems - table of handles to the newly created items
Sample
local tItems = { } if ( gui.getComboBoxItemCount ( hComboBox ) ~= #tGames ) then gui.removeAllComboBoxItems ( hComboBox ) tItems = gui.insertComboBoxItems ( hComboBox, 1, #tGames ) end
Available since ShiVa 2.0