ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/runtime/IBBatchMove.pas
(Generate patch)

Comparing ibx/trunk/runtime/IBBatchMove.pas (file contents):
Revision 5 by tony, Fri Feb 18 16:26:16 2011 UTC vs.
Revision 143 by tony, Fri Feb 23 12:11:21 2018 UTC

# Line 24 | Line 24
24   {       Corporation. All Rights Reserved.                                }
25   {    Contributor(s): Jeff Overcash                                       }
26   {                                                                        }
27 + {    IBX For Lazarus (Firebird Express)                                  }
28 + {    Contributor: Tony Whyman, MWA Software http://www.mwasoftware.co.uk }
29 + {    Portions created by MWA Software are copyright McCallum Whyman      }
30 + {    Associates Ltd 2011 - 2018                                               }
31 + {                                                                        }
32   {************************************************************************}
33  
34   unit IBBatchMove;
# Line 33 | Line 38 | unit IBBatchMove;
38   interface
39  
40   uses
41 < {$IFDEF LINUX }
37 <  unix,
38 < {$ELSE}
41 > {$IFDEF WINDOWS }
42    Windows,
43 + {$ELSE}
44 +  unix,
45   {$ENDIF}
46 <  SysUtils, Graphics, Classes, Controls, Db,
46 >  SysUtils, Classes,  Db,
47       IB, IBCustomDataSet, IBDatabase, IBTable;
48  
49   type
# Line 48 | Line 53 | type
53  
54    TIBBatchMove = class(TComponent)
55    private
51    FIBLoaded: Boolean;
56      FDestination: TIBTable;
57      FSource: TIBCustomDataSet;
58      FMode: TBatchMode;
# Line 100 | Line 104 | type
104  
105   implementation
106  
107 < uses IBIntf;
107 > uses FBMessages;
108  
109   { TIBBatchMove }
110  
111   constructor TIBBatchMove.Create(AOwner: TComponent);
112   begin
113    inherited Create(AOwner);
110  FIBLoaded := False;
111  CheckIBLoaded;
112  FIBLoaded := True;
114    FAbortOnKeyViol := True;
115    FAbortOnProblem := True;
116    FTransliterate := True;
# Line 118 | Line 119 | end;
119  
120   destructor TIBBatchMove.Destroy;
121   begin
122 <  if FIBLoaded then
123 <  FMappings.Free;
122 >  if FMappings <> nil then
123 >    FMappings.Free;
124    inherited Destroy;
125   end;
126  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines