In ASP .Net, I need to put some values together in a string and then add them to a list box.
I need the individual variables to be 10 characters long and I need them to be right justified.
I tried using this
VB Code:
Dim strName As New String(" ", 10)
And I tried using this...
VB Code:
Dim strName As String = "Right"
In both cases, when I add these variables to a list box there are no spaces in between them...
Here is my listbox add line of code.
VB Code:
ListFuel.Items.Add("RUL " & strGal & " " & strDol & " " & strMar & " " & strPer)
Anyone have any ideas?
Thanks




Reply With Quote