Cannot implicitly convert type object to string error

Stimulsoft BI Designer discussion
Post Reply
luke
Posts: 42
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 8857 times
Kirill Klimenkov

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: 42
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

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