String Format

  • Thread starter Thread starter PawelR
  • Start date Start date
P

PawelR

Hello Group,
My apps save to disk (as .txt file) data from Table.
I use formatting string (String.Format("{0}\t{1}\t{2}\t{3},
myTable.ItemArray). In column [1] I've different length of text.
Text is up 1 to 15 chars.

How set in text file constant width for columns.
Thx PawelR
 
try to determine the needed field lengths
and use StringObj.LeftPad(15,' ') to setup a fixed length for each
field.....
 
Back
Top