Recent

Author Topic: FormatFloat and ftFMTBcd  (Read 1473 times)

itgiu

  • Newbie
  • Posts: 4
FormatFloat and ftFMTBcd
« on: July 03, 2023, 02:24:45 pm »
Hi, i have upgraded lazarus to 2.2.6 version.
I have two issues with my application what worked ok before the upgrade.
Both issues are related to ftFMTBcd field.
The first: i got any value non in range 0 .... 0. But if the minvalue and maxvalue are equal to zero, any value must be allowed ... why i get error?
The second the field ftFMTBcd  display ever zero in report formatted with  Formatfloat
es:
begin
  if [Riga."prezzo"] <> 0 then
  begin
    if [TF."prezzi_ivati"] = 'N' then
     Text := FormatFloat('0.0000', [Riga."prezzo"])
    else
     Text := FormatFloat('0.0000', [Riga."prezzo_ivato"]);
     end
  else
    Text := '';
end;   
Any help?? Thanks in advance

 

TinyPortal © 2005-2018