S
Samansa
Unregistered / Unconfirmed
GUEST, unregistred user!
unit FormMain;
interface
uses
SysUtils, Classes, Forms, Controls, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses SockApp,DMLarNet;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
LarNetDM.qrySupply.Close;
LarNetDM.qrySupply.SQL.Clear;
LarNetDM.qrySupply.SQl.Add('select * from Tab_FASP_Suggestion');
LarNetDM.qrySupply.open;
end;
这是在中间层的代码!
执行时连LarNetDM.qrySupply.Close;都不让执行!难道中间层不允许数据库操作!请教高人指点!
interface
uses
SysUtils, Classes, Forms, Controls, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses SockApp,DMLarNet;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
LarNetDM.qrySupply.Close;
LarNetDM.qrySupply.SQL.Clear;
LarNetDM.qrySupply.SQl.Add('select * from Tab_FASP_Suggestion');
LarNetDM.qrySupply.open;
end;
这是在中间层的代码!
执行时连LarNetDM.qrySupply.Close;都不让执行!难道中间层不允许数据库操作!请教高人指点!