cancel
Showing results for 
Search instead for 
Did you mean: 

unable to remove blank space in Tax amount

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member207719
Participant
0 Kudos

Hi Bhabani,

You can use "Trim" function to remove white spaces. Like, this.TaxAmount.content.Trim();

Regards,

Senthil

Answers (1)

Answers (1)

0 Kudos

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

0 Kudos

Hello Bhabani,

Try this example in your code var x = strlen.Replace (" & nbsp", ""); for replacing the space value .

Regards

Gaurav Prasad

0 Kudos

Hi Gaurav,

Thank you for your help,i have tested by written your code but still extra spaces are coming,do you have other idea to remove this spaces.

Regrads

Bhabani