Glenn Patton

Glenn Patton

  • NA
  • 308
  • 81.2k

Packing A string to a set length

Jan 28 2013 6:11 AM
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)