on 08-14-2018 1:57 PM
Hi All,
In payment file the tax amount field length is 10 and whenever we have giving 8 digits tax amount, by default its adding two space in the beginning as it’s a string.
can you please help me to remove this extra space and shows the exact data in to the payment file.
anyone can help me to resolve it.
Regards
Bhabani
Hi Bhabani,
You can use "Trim" function to remove white spaces. Like, this.TaxAmount.content.Trim();
Regards,
Senthil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Senthil,
Thank you for the help..its not allowing to written the code like this.TaxAmount.content.Trim(),please have a look into the code
result.ReserveField1=result1.GetFirst().TaxAmount.content.ToString(); in ths result.ReserveField1 whtever the data im gettting i wan to remove the extra space but if im trying to write this.result.ReserveField1.content.Trim its showing an error with for this identifier Could you please suggest how to write it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
10 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.