gui.appendListItems
Append n empty items to a list.
Prototype
tItems = gui.appendListItems ( hComponent, nCount )
Description
You have to loop through the resulting table to get individual item handles.
Parameters
hComponent - valid GUI component handle
nCount - number 1..n how many items you want to append
Return values
tItems - table of handles to the newly created items
Sample
local tFiles = project.getFileList ( nCurrentFolderType, project.getCurrentTargetProfile ( ) ) if ( tFiles and ( #tFiles > 0 ) ) then local tItems = gui.appendListItems ( hList, #tFiles ) if ( tItems ) then for iFileIndex = 1, #tFiles do -- do stuff
Available since ShiVa 2.0