Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab in listbox , but how?

Status
Not open for further replies.

Jonid

Programmer
May 4, 2001
24
AE
How Di I Add tab between Text in List Box?
i use following code to generate CBox's Options from Recordset

while not rs.eof
set myobj = createelement("Option")
myobj.value = rs("Code")
myobj.text = rs("code") & tab & rs("title")
mylist.add myobj
rs.movenext
wend

how do i define tab?




 
rs("code") & chr(9) & rs("title")

?



br
Gerard
 
Or perhaps cleaner:

Code:
rs("code") & vbTab & rs("title")
 
but it doesnt do the work. i want tab between two text all chr(9) or vbtab does is it creates "|" between text and it i see no tabs there????? i want something like columns to seperate two text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top