code: for(i = 0; i <= PlusWnd.LstBox_GetCount("bLstFolders"); i++) { PlusWnd.LstBox_RemoveItem("bLstFiles",i); }