N
ntjrr
Unregistered / Unconfirmed
GUEST, unregistred user!
unit datamodule;
interface
uses
SysUtils, Classes, DB, ADODB;
type
TDataModule1 = class(TDataModule)
ADOConnection1: TADOConnection;
private
{ Private declarations }
public
{ Public declarations }
end;
var
DataModule1: TDataModule1;
implementation
{$R *.dfm}
end.
1.用datamodule命名这单元是否合适,还是改个其它不同的名称,比如DM?
2.为什么我在其它窗口不需要uses datamodule 其它窗口听ADO控件也能连接到DataModule1.ADOConnection1
interface
uses
SysUtils, Classes, DB, ADODB;
type
TDataModule1 = class(TDataModule)
ADOConnection1: TADOConnection;
private
{ Private declarations }
public
{ Public declarations }
end;
var
DataModule1: TDataModule1;
implementation
{$R *.dfm}
end.
1.用datamodule命名这单元是否合适,还是改个其它不同的名称,比如DM?
2.为什么我在其它窗口不需要uses datamodule 其它窗口听ADO控件也能连接到DataModule1.ADOConnection1