Kod: Tümünü seç
adoquery1.sql.Clear;
adoquery1.close;
adoquery1.SQL.Add('select * from product order by ntno');
adoquery1.Open;
Kod: Tümünü seç
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
adoquery1.SQL.Clear;
adoquery1.Close;
adoquery1.SQL.Add('select * from product where ntno LIKE'+QuotedStr('%'+maskedit2.Text+'%'));
adoquery1.Open;
label1.Caption:=adoquery1.Fields[1].AsString;
picture:=label1.Caption+'.jpg';
edit4.text:=picture;
if adoquery1.RecordCount<>0 then
Begin
image1.Picture.LoadFromFile('C:\resimler\'+edit4.text);
end;
if adoquery1.RecordCount=0 then
begin
ShowMessage('Search query record not found');
end;
dbgrid1.ReadOnly:=false;
end;
end.
Yukarıdaki mantıkla yapmayı düşünüyorum.dbgrid üzerinde seçilen veriyi hangi komut ile alabilirim.****yardımınızı bekliyorum...
*** kodları CODE tagı içine alalım.
*** mesajda acil, önemli, gibi ifadeler kullnamayalım. mege