procedure TForm17.Button2Click(Sender: TObject);
var
ESILARA:Variant;
ESILBul:TADOQuery;
begin
ESILARA:=ESILBul.Lookup('ESTOK_KODU','+#39+''+Edit1.Text+''+#39+');
if VarIsNull(ESILARA) Then //boş sa
ShowMessage('Kayıt Bulunamadı')
else
ShowMessage('BULDUM');
end;
[Error] Unit17.pas(213): Not enough actual parameters
If Edit1.Text='0' Then
Begin
Application.MessageBox('Stok Kodu Boş Geçilemez !!!','Bilgilendirme Mesajı',MB_ICONINFORMATION);
Exit
end
Else
If Edit1.Text='' Then
Begin
ESILRapor.Close;
Exit
end
else
ESILRapor.Open;
if not ESILRapor.Locate('ESTOK_KODU',Edit1.Text,[]) = True Then
Begin
ESILRapor.Close;
Application.MessageBox('Aradığınız Stok Bulunamadı !!!','Bilgilendirme Mesajı',MB_ICONINFORMATION);
Exit
end
else
BitBtn2.Enabled:=False;
DBGRid1.Enabled:=True;