Kod: Tümünü seç
var
i: integer;
begin
try
ListView2.Items.Clear;
with Form1.ARABA do
begin
Close;
SQL.Text := 'Select * From ARABA where MODEL like ' +
QuotedStr('%' + Edit2.Text + '%') + ' order by ID DESC';
Open;
while Not Eof do
begin
with ListView2.Items.Add do
begin
ListView2.Items.Caption (FieldByName('PLAKA').AsString);
SubItems.Add(FieldByName('ID').AsString);
end;
Next;
end;
Close;
Active := False;
end;
except
Application.MessageBox('Bir sorun oldu:)))!',
'Uyarı!', MB_Ok or MB_ICONQUESTION);
end;
end;