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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.