Changeset 15 for trunk/UCore.pas


Ignore:
Timestamp:
Jun 13, 2011, 8:25:31 AM (13 years ago)
Author:
george
Message:
  • Modified: USqlDatabase used from CoolWeb package.
  • Added: Store item data to database for Add and Edit dialog.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        44heaptrclog.trc
        55chronis.exe
         6DebugLog.txt
  • trunk/UCore.pas

    r14 r15  
    66
    77uses
    8   Classes, SysUtils, FileUtil, UCoolTranslator, USystem, USqlDatabase;
     8  Classes, SysUtils, FileUtil, UCoolTranslator, UDebugLog, USystem,
     9  USqlDatabase;
    910
    1011type
     
    1415  TCore = class(TDataModule)
    1516    CoolTranslator1: TCoolTranslator;
     17    DebugLog1: TDebugLog;
     18    SqlDatabase1: TSqlDatabase;
    1619    procedure DataModuleCreate(Sender: TObject);
    1720    procedure DataModuleDestroy(Sender: TObject);
     21    procedure SqlDatabase1LogQuery(Sender: TObject; Text: string);
    1822  private
    1923    { private declarations }
     
    3438begin
    3539  System := TChronisBase.Create;
    36   System.Database := TSqlDatabase.Create;
     40  System.Database := SqlDatabase1;
     41  {$IFDEF DEBUG}
     42  DebugLog1.WriteToFileEnable := True;
     43  {$ENDIF}
    3744end;
    3845
     
    4249end;
    4350
     51procedure TCore.SqlDatabase1LogQuery(Sender: TObject; Text: string);
     52begin
     53  DebugLog1.Add('', Text);
     54end;
     55
    4456end.
    4557
Note: See TracChangeset for help on using the changeset viewer.