H
hpbj
Unregistered / Unconfirmed
GUEST, unregistred user!
unit main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Db, ADODB, Grids, DBGrids, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
DBGrid1: TDBGrid;
ADOQuery1: TADOQuery;
ADOQuery2: TADOQuery;
DataSource1: TDataSource;
procedure Button1Click(Sender: TObject);
procedure shs;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
var
table,bm: String;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
table:='s001';
bm:='02';
shs;
end;
procedure TForm1.shs;
var i:integer;
begin
ADOQuery1.SQL.Clear;
.......
ADOQuery2.Close;
end;
end.
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Db, ADODB, Grids, DBGrids, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
DBGrid1: TDBGrid;
ADOQuery1: TADOQuery;
ADOQuery2: TADOQuery;
DataSource1: TDataSource;
procedure Button1Click(Sender: TObject);
procedure shs;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
var
table,bm: String;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
table:='s001';
bm:='02';
shs;
end;
procedure TForm1.shs;
var i:integer;
begin
ADOQuery1.SQL.Clear;
.......
ADOQuery2.Close;
end;
end.