2
I have a problem using the Padleft method. I need to put some zeros in front of a string, but I’m not getting it. For example:
string value = "2001795";
string newValue = value.PadLeft(5, '0');
Theoretically, the string "newValue" should have the value "000002001795", right? But this is not working...
Thank you very much! Now I understand, I thought the first parameter was the amount of characters that are entered. Now I understand, thank you very much!
– ndr458