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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combobox and textbos

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
I have a textbox and a combobox. What I am attempting to do is take the value from the textbox and find out what the index of same item is in the combobox.
 
You will need something similar to this. I am not near my development environment so the properties may not be correct.

Code:
dim i as interger
dim l_bolFound as boolean

for i = 0 to combobox1.items.count
   combobox1.selectedindex = i
   if combobox1.text = textbox1.text.trim then
      l_bolFound = true
   endif
next i

If at first you don't succeed, then sky diving wasn't meant for you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top