Page 1 of 1
Cannot implicitly convert type object to string error
Posted: Fri Jul 01, 2022 1:13 pm
by luke
I'm not sure what I'm doing wrong in this statement the value tax is a decimal.
Re: Cannot implicitly convert type object to string error
Posted: Mon Jul 04, 2022 7:27 am
by Kirill Klimenkov
Hello,
The IIF() function returns object type value.
Please, convert it to a string like this:
Code: Select all
IIF((PayRunContractorContractors.VAT) > 0 , "Vat" , "").ToString()
Thank you.
Re: Cannot implicitly convert type object to string error
Posted: Mon Jul 04, 2022 1:22 pm
by luke
Thank you for getting back to me as soon as you did.
Re: Cannot implicitly convert type object to string error
Posted: Mon Jul 04, 2022 1:45 pm
by Kirill Klimenkov
Hello,
We are always glad to help you.
Let us know if you need our help.
Thank you.