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 } |
30 |
> |
{ Associates Ltd 2011 - 2018 } |
31 |
|
{ } |
32 |
|
{************************************************************************} |
33 |
|
|
43 |
|
{$ELSE} |
44 |
|
unix, |
45 |
|
{$ENDIF} |
46 |
< |
SysUtils, {Graphics,} Classes, Controls, Db, |
46 |
> |
SysUtils, Classes, Db, |
47 |
|
IB, IBCustomDataSet, IBDatabase, IBTable; |
48 |
|
|
49 |
|
type |
53 |
|
|
54 |
|
TIBBatchMove = class(TComponent) |
55 |
|
private |
56 |
– |
FIBLoaded: Boolean; |
56 |
|
FDestination: TIBTable; |
57 |
|
FSource: TIBCustomDataSet; |
58 |
|
FMode: TBatchMode; |
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); |
115 |
– |
FIBLoaded := False; |
116 |
– |
CheckIBLoaded; |
117 |
– |
FIBLoaded := True; |
114 |
|
FAbortOnKeyViol := True; |
115 |
|
FAbortOnProblem := True; |
116 |
|
FTransliterate := True; |
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 |
|
|