mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:59:11 +02:00
* Patch to add ftcurrency and ftbcd support to memds, Lacak2, Mantis #20451
git-svn-id: trunk@19445 -
This commit is contained in:
parent
908673e48b
commit
c8457e8ffe
@ -311,7 +311,9 @@ begin
|
|||||||
ftString: result:=FieldDefs.Items[FieldNo-1].Size+1;
|
ftString: result:=FieldDefs.Items[FieldNo-1].Size+1;
|
||||||
ftFixedChar:result:=FieldDefs.Items[FieldNo-1].Size+1;
|
ftFixedChar:result:=FieldDefs.Items[FieldNo-1].Size+1;
|
||||||
ftBoolean: result:=SizeOf(Wordbool);
|
ftBoolean: result:=SizeOf(Wordbool);
|
||||||
|
ftCurrency,
|
||||||
ftFloat: result:=SizeOf(Double);
|
ftFloat: result:=SizeOf(Double);
|
||||||
|
ftBCD: result:=SizeOf(currency);
|
||||||
ftLargeInt: result:=SizeOf(int64);
|
ftLargeInt: result:=SizeOf(int64);
|
||||||
ftSmallInt: result:=SizeOf(SmallInt);
|
ftSmallInt: result:=SizeOf(SmallInt);
|
||||||
ftInteger: result:=SizeOf(longint);
|
ftInteger: result:=SizeOf(longint);
|
||||||
@ -981,6 +983,7 @@ begin
|
|||||||
ftDate : F1.AsDateTime:=F2.AsDateTime;
|
ftDate : F1.AsDateTime:=F2.AsDateTime;
|
||||||
ftTime : F1.AsDateTime:=F2.AsDateTime;
|
ftTime : F1.AsDateTime:=F2.AsDateTime;
|
||||||
ftDateTime : F1.AsDateTime:=F2.AsDateTime;
|
ftDateTime : F1.AsDateTime:=F2.AsDateTime;
|
||||||
|
else F1.AsString:=F2.AsString;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
Try
|
Try
|
||||||
|
Loading…
Reference in New Issue
Block a user