Cannot implicitly convert type object to string error

Сonversation on different topics
Post Reply
luke
Posts: 36
Joined: Fri Jun 03, 2022 6:57 am

Cannot implicitly convert type object to string error

Post by luke »

I'm not sure what I'm doing wrong in this statement the value tax is a decimal.
Attachments
2022-07-01_15-09-29.png
2022-07-01_15-09-29.png (65.94 KiB) Viewed 95 times
Kirill Klimenkov
Posts: 7
Joined: Tue Mar 23, 2021 6:21 am

Re: Cannot implicitly convert type object to string error

Post 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.
luke
Posts: 36
Joined: Fri Jun 03, 2022 6:57 am

Re: Cannot implicitly convert type object to string error

Post by luke »

Thank you for getting back to me as soon as you did. :D :D
Kirill Klimenkov
Posts: 7
Joined: Tue Mar 23, 2021 6:21 am

Re: Cannot implicitly convert type object to string error

Post by Kirill Klimenkov »

Hello,


We are always glad to help you.
Let us know if you need our help.


Thank you.
Post Reply