I want to print a decimal value as follows:
(10.00)
I tried the following:
Amount := 10; //defined as a decimal
AmountToPrint := '(' + format(Amount,''<Sign><Integer Thousand><Decimals,2>') + ')'; //AmountToPrint is defined as text.
When I compile, it gives me an error: Type conversion is not possible. Integer := Text.
Any ideas?
0
Comments
//comment out that line & try to compile. If you still see the error then it's not that part of the code but somewhere else.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have it now defined as:
AmountToPrint := format(Amount,7,'(<Sign><Integer Thousand><Decimals,2>)';
I included the '(' and ')' in the format string.
This works great.