3
Answers

Packing A string to a set length

Glenn Patton

Glenn Patton

11y
1.1k
1
Hi All,

I have a string that I need to be a set length (8), I need a method of packing out the string to be 8 characters long. If the input string "12" I need the packing to be "12000000" if the string is "1234" the packing to be "12340000".  I have either asked or told someone how to do this but can't find the method in any of my files! (FRUSTRATING!!!!) 


Glenn 



 
Hmmm,   .PadRight ???? found MSDN any help?
 

Answers (3)