mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 17:49:07 +02:00
* Forgot to commit FormatFloat builtin
git-svn-id: trunk@37005 -
This commit is contained in:
parent
aa415bfc6b
commit
42e716278b
@ -3853,6 +3853,11 @@ begin
|
|||||||
Result.resDateTime:=StrToDateTimeDef(Args[0].resString,Args[1].resDateTime);
|
Result.resDateTime:=StrToDateTimeDef(Args[0].resString,Args[1].resDateTime);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure BuiltInFormatFloat(Var Result : TFPExpressionResult; Const Args : TExprParameterArray);
|
||||||
|
begin
|
||||||
|
result.ResString := FormatFloat(Args[0].resString, Args[1].ResFloat);
|
||||||
|
end;
|
||||||
|
|
||||||
Procedure BuiltInBoolToStr(Var Result : TFPExpressionResult; Const Args : TExprParameterArray);
|
Procedure BuiltInBoolToStr(Var Result : TFPExpressionResult; Const Args : TExprParameterArray);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -4008,6 +4013,7 @@ begin
|
|||||||
AddFunction(bcConversion,'strtotimedef','D','SD',@BuiltInStrToTimeDef);
|
AddFunction(bcConversion,'strtotimedef','D','SD',@BuiltInStrToTimeDef);
|
||||||
AddFunction(bcConversion,'strtodatetime','D','S',@BuiltInStrToDateTime);
|
AddFunction(bcConversion,'strtodatetime','D','S',@BuiltInStrToDateTime);
|
||||||
AddFunction(bcConversion,'strtodatetimedef','D','SD',@BuiltInStrToDateTimeDef);
|
AddFunction(bcConversion,'strtodatetimedef','D','SD',@BuiltInStrToDateTimeDef);
|
||||||
|
AddFunction(bcConversion,'formatfloat','S','SF',@BuiltInFormatFloat);
|
||||||
end;
|
end;
|
||||||
if bcAggregate in Categories then
|
if bcAggregate in Categories then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user