gui.appendListItems

Append n empty items to a list.

Prototype

  1. 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

  1. local tFiles = project.getFileList ( nCurrentFolderType, project.getCurrentTargetProfile ( ) )
  2. if ( tFiles and ( #tFiles > 0 ) ) then
  3. local tItems = gui.appendListItems ( hList, #tFiles )
  4. if ( tItems ) then
  5. for iFileIndex = 1, #tFiles do
  6. -- do stuff

Available since ShiVa 2.0