Changeset 134 for trunk/UCore.pas


Ignore:
Timestamp:
Apr 10, 2022, 1:54:34 PM (3 years ago)
Author:
chronos
Message:
  • Modified: UDataFile unit moved into Common package and TDataFile class made TComponent descendant.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r133 r134  
    142142  LoadedFiles: Integer;
    143143begin
    144   TempFile := DefaultDataFileClass.Create;
     144  TempFile := DefaultDataFileClass.Create(nil);
    145145  try
    146146    OpenDialog1.Filter := TempFile.GetFileFilter;
     
    158158    for I := 0 to OpenDialog1.Files.Count - 1 do begin
    159159      if FileExists(OpenDialog1.Files[I]) then begin
    160         TempFile := TVCardFile.Create;
     160        TempFile := TVCardFile.Create(nil);
    161161        try
    162162          TempFile.LoadFromFile(OpenDialog1.Files[I]);
     
    179179  TempFileName: string;
    180180begin
    181   TempFile := DefaultDataFileClass.Create;
     181  TempFile := DefaultDataFileClass.Create(nil);
    182182  try
    183183    OpenDialog1.Filter := TempFile.GetFileFilter;
     
    364364  TempFile: TDataFile;
    365365begin
    366   TempFile := DefaultDataFileClass.Create;
     366  TempFile := DefaultDataFileClass.Create(nil);
    367367  try
    368368    OpenDialog1.Filter := TempFile.GetFileFilter;
     
    510510  FileClose;
    511511  if FileClosed then begin
    512     DataFile := DefaultDataFileClass.Create;
     512    DataFile := DefaultDataFileClass.Create(nil);
    513513    DataFile.OnModify := FileModified;
    514514    TVCardFile(DataFile).VCard.OnError := DoError;
Note: See TracChangeset for help on using the changeset viewer.