i: Integer;
begin
for i := 0 to (FileListBox1.Items.Count - 1) do begin
if FileListBox1.Selected[i] then
ListBox1.Items.delete(i);
end;
begin
for i := 0 to (FileListBox1.Items.Count - 1) do begin
if FileListBox1.Selected[i] then
ListBox1.Items.delete(i);
end;
begin
listbox1.Items.Delete(listbox1.Itemindex);
end;
if listbox1..Items.Count=0 then exit;
if listbox1.select[Listbox1.ItemIndex] then
Listbox2.Items.Delete(Listbox1.itemindex);
end;
begin
try
listbox1.Items.Delete(listbox1.Itemindex);
finally
// 处理listbox1为null
end;
var
i: Integer;
begin
for i := 0 to (FileListBox1.Items.Count - 1) do begin
if FileListBox1.Selected[i] then
ListBox1.Items.delete(i);
end;
begin
if Indexof('Temp') >-1 then
Delete(IndexOf('Temp'));
end;
删除'Temp'