Hi
I have the below code and i getting error - Type Conversion is not possible because 1 of the operators contain Invalid Type.
Code[1] := 'Tax @ ' + TaxRate + ' %';
TaxRate is decimal type.
Thanks
*This post is locked for comments
Hi
I have the below code and i getting error - Type Conversion is not possible because 1 of the operators contain Invalid Type.
Code[1] := 'Tax @ ' + TaxRate + ' %';
TaxRate is decimal type.
Thanks
*This post is locked for comments
Hi,
You need to put 'TaxRate' within format expression i.e. Format(TaxRate) as you are concatenating the values and for concatenation the values have to be in string format. FORMAT function formats a value into a string.
So your final expression should be:
Code[1] := 'Tax @ ' + FORMAT(TaxRate) + ' %';
Code[1] := 'Tax @ ' +format(TaxRate) + ' %';
Use above expression
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156