You've already forked lazarus-ccr
Support for fmtBCD
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8010 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -142,7 +142,7 @@ procedure Register;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Math, jdbutils;
|
Math, FMTBcd, jdbutils;
|
||||||
|
|
||||||
procedure Register;
|
procedure Register;
|
||||||
begin
|
begin
|
||||||
@ -205,7 +205,13 @@ begin
|
|||||||
Caption := FormatFloat(EditFormat, theValue)
|
Caption := FormatFloat(EditFormat, theValue)
|
||||||
else
|
else
|
||||||
Caption := FloatToStr(theValue);
|
Caption := FloatToStr(theValue);
|
||||||
FDataLink.Field.Value := theValue;
|
//writeln(FDataLink.Field.FieldDef.DataType);
|
||||||
|
case FDataLink.Field.FieldDef.DataType of
|
||||||
|
ftFMTBcd: FDataLink.Field.AsBCD := StrToBCD(FormatFloat('0.'+StringOfChar('0', Decimals), theValue));
|
||||||
|
else
|
||||||
|
FDataLink.Field.Value := theValue;
|
||||||
|
end;
|
||||||
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user