String Format

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
 
S

Suhail Salman

try to determine the needed field lengths
and use StringObj.LeftPad(15,' ') to setup a fixed length for each
field.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top