Page 1 of 1

There is no matching overloaded method for 'Replace(String,String,Number)'

Posted: Wed Aug 26, 2020 1:58 pm
by Mateus Garrido Kern
Hi,

I had this error when trying to perform a replace on a string:
Expression in Text property of 'Text29' can't be evaluated! Parser error: There is no matching overloaded method for 'Replace(String,String,Number)'
And this is the Expression for the Text29:
{Replace(root_retorno_abertura.texto,"{NumeroFolhas}",TotalPageCount)}
In the Design Preview works very well, but in my Angular project using javascript presents this error.

Re: There is no matching overloaded method for 'Replace(String,String,Number)'

Posted: Wed Aug 26, 2020 1:59 pm
by Mateus Garrido Kern
How can I solve this problem?

Thank you

Re: There is no matching overloaded method for 'Replace(String,String,Number)'

Posted: Wed Aug 26, 2020 2:24 pm
by Mateus Garrido Kern
Hello,

I solved this problem using 'ToString()' function, like this:
{Replace(root_retorno_abertura.texto,"{NumeroFolhas}",ToString(TotalPageCount))}
Thank you

Re: There is no matching overloaded method for 'Replace(String,String,Number)'

Posted: Wed Aug 26, 2020 8:29 pm
by Lech Kulikowski
Hello,

Thank you for the information.