Hello. I have a field inside a Mainframe that i need to automate, and this field contains, by default, nine zeros (0) 000000000 this way. For each client, i have a salary limit that I must put in this field, but the zeros can’t be deleted, they are positional. Example: if i have a 5000 limit, it must be this way 000005000, 9 numbers format will always stay, so i need to use PadLeft to fullfill the left side with enough zeros, and Replace to remove commas and dots from the salary.
Without replace function, the padleft works but it puts dots and commas, that are not accepted in the field, and when I try this way(for 5000 salary limit) : limit.PadLeft(9,CChar(“0”)).Replace(“,”,“”).Replace(“.”,“”) it simply give me this result:
000500000
Giving me the wrong limit as the real limit is 5000 not 500000.