My requirement is based on D365 F&O to add multiple additional spaces at end of string value and later I am exporting it in xml.
Somehow only single space is coming in the output but while debugging I can see multiple spaces getting added as per code. Even if I'm trying to add in between same is happening
Code snippet:
value = "Test";
paddedvalue = value + strRep(" ",10) + "*";
Expected Value = Test *
Output = Test *
I am using visual studio 2019 to write code.
Is there any feature automatically trimming the whitespaces or I'm missing any thing ?