Call to 'Ansireplacestr' is ambiguous

Asked

Viewed 28 times

0

After switching RAD Studio XE8 to RAD Studio 10 Seattle I got 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, ".", ",");

1 answer

0


I decided to inform the function I am using AnsiString

Altered code:

UniTable1->FieldByName("chuva")->AsFloat =
                StrToFloat(AnsiString(chuva), ".", ",");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.