Changeset 15 for trunk/UCore.pas
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 heaptrclog.trc 5 5 chronis.exe 6 DebugLog.txt
-
- Property svn:ignore
-
trunk/UCore.pas
r14 r15 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, UCoolTranslator, USystem, USqlDatabase; 8 Classes, SysUtils, FileUtil, UCoolTranslator, UDebugLog, USystem, 9 USqlDatabase; 9 10 10 11 type … … 14 15 TCore = class(TDataModule) 15 16 CoolTranslator1: TCoolTranslator; 17 DebugLog1: TDebugLog; 18 SqlDatabase1: TSqlDatabase; 16 19 procedure DataModuleCreate(Sender: TObject); 17 20 procedure DataModuleDestroy(Sender: TObject); 21 procedure SqlDatabase1LogQuery(Sender: TObject; Text: string); 18 22 private 19 23 { private declarations } … … 34 38 begin 35 39 System := TChronisBase.Create; 36 System.Database := TSqlDatabase.Create; 40 System.Database := SqlDatabase1; 41 {$IFDEF DEBUG} 42 DebugLog1.WriteToFileEnable := True; 43 {$ENDIF} 37 44 end; 38 45 … … 42 49 end; 43 50 51 procedure TCore.SqlDatabase1LogQuery(Sender: TObject; Text: string); 52 begin 53 DebugLog1.Add('', Text); 54 end; 55 44 56 end. 45 57
Note:
See TracChangeset
for help on using the changeset viewer.