Call to 'AnsiReplaceStr' is ambiguous

0

After switching RAD Studio XE8 to RAD Studio 10 Seattle, I get the following error:

[bcc64 Error] Unit1.cpp(425): call to 'AnsiReplaceStr' is ambiguous
System.StrUtils.hpp(51): candidate function
System.AnsiStrings.hpp(82): candidate function

Original code:

UniTable1->FieldByName("chuva")->AsFloat =
                StrToFloat(chuva, ".", ",");
    
asked by anonymous 20.09.2015 / 19:00

1 answer

0

I solved the function I am using AnsiString

Code changed:

UniTable1->FieldByName("chuva")->AsFloat =
                StrToFloat(AnsiString(chuva), ".", ",");
    
20.09.2015 / 19:00