hi, i;ve got a little problem.. can someone tell me why the name of the file/folder does not get set as the data in the LB?
Code:
ftp_dir_index = FTP.List(); -- add each item to the listbox in this format: -- <name> (<size>) for i = 1, ftp_dir_index.Count do local name = ftp_dir_index[i].Name; local size = ftp_dir_index[i].Size; local date = ftp_dir_index[i].Date; ftp_file_info = FTP.GetFileInfo(name); if ftp_dir_index[i].Type == FTP.FOLDER then -- add a [ ] prefix to make the folders stand out in the listbox ListBox.AddItem("ftp_dir_index", "[ FOLDER ] "..name.." ("..size.." bytes) ", name); else ListBox.AddItem("ftp_dir_index", "[ FILE ] "..name.." ("..size.." bytes) ", name); end ListBox.SetUpdate("ftp_dir_index", true); end
Comment