Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

string printing, should be easy but cant figure it out!

$
0
0
Hi All,

I have had code that prints text all lined up line by line with a equal width font, this is fine, until we upgraded and allowed more space for a description.

now the description can be 30 chars long and when it is it prints fine. when it is less than 30 chars it fills the rest with spaces (im using padright for that)

again normally fine, but once it goes over to the next line they stop lining up.

for eg

Name:  odd.JPG
Views: 127
Size:  15.7 KB

the first item is padded to equal 30 spaces then we have qty of 1 then its price
the second item has 30 chars of actual letters. the font is equal width so 30 chars and 30 padded chars should be the same no?

please help.
Attached Images
 

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>