unit Unit11;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, Db, DBTables;
type
TForm11 = class(TForm)
GroupBox1: TGroupBox;
BitBtn1: TBitBtn;
Edit1: TEdit;
procedure FormCreate(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form11: TForm11;
implementation
uses Unit1;
{$R *.DFM}
procedure TForm11.FormCreate(Sender: TObject);
begin
self.top:=(Screen.Height-self.Height)div 2;
self.Left :=(screen.Width-self.Width)div 2;
end;
procedure TForm11.BitBtn1Click(Sender: TObject);
begin
dm1.table1.locate('编号',edit1.text,[loCaseInsensitive]);
close;
end;
procedure TForm11.FormActivate(Sender: TObject);
begin
form11.ActiveControl:=edit1;
end;
end.