Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello everybody. I am trying to create a string that has columns with the use of the tab. In VB6 it was something like :
string 3 =string1 & tab(5) & string2 & tab(10)so with the above example i would have the first string in column 0 the second in column 5 and the third in column 10.
string 1 string 2 string 3
some info other info other info
line 2 line 2 line2How can i do that in VB.NET. I am using vbtab but i want the next column to be in the place that i have specified and not to be moved to the next tab stop if any word is bigger than the rest. In this case that word dictates where the tab will go BUT only for that line. So i get a column starting in one position and the rest in another.
I hope this makes sense. Any help please? Thank you.
(NOTE: the words string, some info, line 2 are alligned to their left. The same with string 2, other info, line 2 AND string 3, other info, line2. The preview of the message deletes the extra spaces that i have add to show the 3 columns.)

i would guess that you would want to format the string using Format? (this was in vb6, i don't know about vb.net.) if it isnt there then you could write your own format string statment (which basically padds the string with the character specified)
for instance:
Format("10","0000")
will produce
"0010"Hop this helps
ChiHappy Decemberween, Everybody!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |