skibascott
IS-IT--Management
I am trying to align the columns in a text box. Here is the snippet of code that pertains:
Because the first item in each list box option has a variable length and the " " I used is a fixed length, the alignment is thrown off. I believe the way to go would be to create a variable length whitespace string that could be inserted in place of the 2 non-breaking spaces? I have tried this to no avail.
Am I on the right track or is there another way?
Code:
LastCol = 2
LastRow = UBound(RecSet_Array, 2)
Response.Write "<SELECT NAME='sheetlist' SIZE=20 onChange=FillFields()>"
For Row = 0 To LastRow
Response.Write "<OPTION value=" & RecSet_Array(1, Row) & ">"
For Col = 0 To LastCol
Response.Write RecSet_Array(Col,Row) & "  "
Next
Next
Response.Write "</OPTION>"
Response.Write "</SELECT>"
Because the first item in each list box option has a variable length and the " " I used is a fixed length, the alignment is thrown off. I believe the way to go would be to create a variable length whitespace string that could be inserted in place of the 2 non-breaking spaces? I have tried this to no avail.
Am I on the right track or is there another way?