Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box listindex to a itemdata value
Message
 
To
05/03/2001 20:36:57
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482061
Message ID:
00482154
Views:
11
>Hi all,
>i have set up a combo box so that the list contains the names i want displayed and their corresponding key values are in the itemdata bit.
>now, i want to display the value in the list that has a particular itemdata value. how is this done.
>i have tried setting the listindex to the itemdata value that i want but this doesn't work. do i have to loop through the list??

You need to do a loop (from 0 to ListCount-1) to compare your value to each ItemData. There is no search function.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform