Re: Combobox listindex confusion
- From: "AK" <nospam@xxxxxxxxxxx>
- Date: Sat, 25 Mar 2006 18:13:04 GMT
Ahhhh.. OK that nested Object. List(Object . Property)
I see.
Thanks for putting me back on track~!
"Ivar" <ivar.ekstromer000@xxxxxxxxxxxx> wrote in message
news:o9eVf.6706$g76.6463@xxxxxxxxxxxxxxxxxxxxxxx
StrReturn = Combo1.List(Combo1.ListIndex)
or
StrReturn = Combo1.Text
"AK" <nospam@xxxxxxx> wrote in message
news:wrdVf.14478$1Z5.12991@xxxxxxxxxxxxxxxxxxxxxxx
I'm confused,
I have a dropdown combobox. cboItemNames
I populate the list with an Open file, Do Loop, and read the item names
into the list using the the AddItem method.
Populates OK. The names of the items show up fine in my dropdown.
How do I access the Item Name fot the item that has been selected in that
dropdown.
I did a selection from the cbobox and but when I execute a
Debug.Print cboItemNames.List Index
I find that I am getting the index number associated with the item, not
the name. Was thinking that without a () at the end it would have
returned the name of the item.
Sooo.......How do I return the name associated with the index number of
the chosen item, not the number?
I'm just having a brain lock.
Thanks
AK
.
- References:
- Combobox listindex confusion
- From: AK
- Re: Combobox listindex confusion
- From: Ivar
- Combobox listindex confusion
- Prev by Date: Cross Form Accessing of properties of an Object on a User Control
- Next by Date: visual basic 5.0 toolkit setup not found when trying to install application
- Previous by thread: Re: Combobox listindex confusion
- Next by thread: VB to Excel - Best method?
- Index(es):
Relevant Pages
|