At some point in my app I'm adding to a listbox a string like so:
I have 16 spaces for characters so I calculate how many blank spaces I need like so:VB Code:
lstW1.AddItem Text1 & "[I]spaces go here[/I]" & Text2 & "-" & Text3
This leaves me with how many spaces I need to insert between Text1 and Text2, my trouble isVB Code:
iSpaces = 16 - (Len(Text1) + Len(Text2) + Len(Text3))
I can't figure out how to add these spaces.
Any help is appreciated:




Reply With Quote