Kod: Tümünü seç
procedure TForm3.Button1Click(Sender: TObject);
var
i: Integer;
begin
if Form1.ListView1.Items.Count > 0 then
try
with Form1.ListView1 do
begin
for i := Items.Count - 1 downto 0 do
begin
if Items[i].Checked then
begin
with Form1.Listem do
begin
Close;
SQL.Clear;
SQL.Add('Insert Into LISTE (SIRANO, START)');
SQL.Add(' Values (:SRN, :STR)');
ParamByName('SRN').AsString := Items[i].Caption;
ParamByName('STR').AsString := Items[i].SubItems[0];
ExecSQL;
end
end
else
begin
Application.MessageBox('Kopyalama İşlemi Yapılamadı!', 'Uyarı!',
MB_Ok or MB_ICONQUESTION);
end;
end;
end;
except
end;
end;