You can change the FORMAT(MyDecimal) to any formatted output you want, but you must do it twice:
One time for the text you want to have and one time for getting the string length of this text.
You also can put the formatted value in a text var and substitute the FORMAT(MyDecimal) in the above written code by your text var.
Comments
One time for the text you want to have and one time for getting the string length of this text.
You also can put the formatted value in a text var and substitute the FORMAT(MyDecimal) in the above written code by your text var.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
I was able to build a solution with your help! \:D/