?? dmrsgl.pas
字號:
unit dmRsgl;
interface
uses
SysUtils, Classes, RSGLCommon, ADODB, DB, Dialogs;
type
TdmRsgl = class(TDataModule)
adocRsgl: TADOConnection;
adotRyxx: TADOTable;
adotBmxx: TADOTable;
adotJycd: TADOTable;
procedure DataModuleCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
{$R *.dfm}
{ TdmRSGL }
procedure TdmRsgl.DataModuleCreate(Sender: TObject);
var
l_File: string;
begin
inherited;
l_File := DataPath + conRSGLDataFile;
if not FileExists(l_File) then
ShowMessage('文件不存在!無法打開數(shù)據(jù)庫!');
with adocRsgl do
begin
ConnectionString := CNT_ConnectString;
ConnectionString := Format(ConnectionString, [l_File]);
Connected := True;
end;
end;
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -