VB fixed string length

Associate
Joined
26 Nov 2006
Posts
1,091
I'm doing a noddy program and I want to add a couple of strings together to make up a longer string, but I need to ensure that the strings I'm adding line up under label headings.

i.e

dim a as string * 10
dim b as string * 10
dim c as string
a = "overclockers"
b = "forums"

c = a + space(5) + b

and it will look like this

WEBSITE LOCATION
overclockers forums

but instead its moving things left depending on the a string,

any ideas?
 
a is a fixed length string of 10, overclockers is 12?

Also for string in VB you should use & not +

TrUz
 
sorry typo meant to say

WEBSITE LOCATION
overclocke forums

not sure what you mean by the last comment though, I havent developed for about 8 years (thats why i'm using vb6 :) )
 
Back
Top Bottom