gui.removeAllListItems
Removes all items from a list.
Prototype
bOk = gui.removeAllListItems ( hComponent )
Parameters
hComponent - valid GUI component handle
Return values
bOk - true if successful
Sample
function onMainViewRefreshAdditionalFilesList ( hList, sAdditionalFiles ) if ( hList ) then local tFiles = string.explode ( sAdditionalFiles, ";" ) if ( tFiles ) then gui.removeAllListItems ( hList ) for i = 1, #tFiles do -- do stuff
Available since ShiVa 2.0