Hello all,
I know that in PHP, if you want a variable to always be say 3 characters in length and the value is 1 or 2 characters, you can use the sprintf command to insert as many characters of your choice, until the variable reaches the specified length.
How can I do the same with Visual C#? BTW, I need to add the zeros to the left of the character.
Thanks for any help.
I know that in PHP, if you want a variable to always be say 3 characters in length and the value is 1 or 2 characters, you can use the sprintf command to insert as many characters of your choice, until the variable reaches the specified length.
How can I do the same with Visual C#? BTW, I need to add the zeros to the left of the character.
Thanks for any help.