Results 1 to 10 of 10

Thread: [Resolved] Fixed strings for ASP Pages

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    [Resolved] Fixed strings for ASP Pages

    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:
    1. Dim strName As New String(" ", 10)

    And I tried using this...

    VB Code:
    1. 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:
    1. ListFuel.Items.Add("RUL " & strGal & " " & strDol & " " & strMar & " " & strPer)

    Anyone have any ideas?

    Thanks
    Last edited by indydavid32; Oct 22nd, 2003 at 12:08 PM.
    David Wilhelm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width