• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add items to LISTBOX

Sanchez

OSNN Junior Addict
#1
I want the listbox in my form to display 3 strings.
How can I add these 3 strings to the listbox??
P.S. Don't thinkg Additem works for me...
 
#2
add item??

HTML code wise it would look like this
Code:
<select>
<option value="item1">First Item Name</option>
<option value="item2">Second Item Name</option>
<option value="item3">Third Item Name</option>
</select>
 

XPos

OSNN Addict
#5
So how did you do it? Did you have to use the Additem property and concatenate the entry?

Code:
Dim sString, sItem1, sItem2, sItem3 as String
sString = sItem1 & " - " & sItem2 & " - " &  sItem3
Listbox.Additem  sString

'or

'set the column property to 3 and us the vbTab to separate the items
Listbox.Additem sItem1 vbTab sItem2 vbTab sItem3
 

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,017
Latest member
loxioalix