Combo Box

TheMan's Avatar, Join Date: Dec 2010
Newbie Member
Hi,
I have a loaded combo box and was wondering if there was a way i could get the place value from it when it is selected. An example would be i have a combo box full of foods:

Apple
Bannana
Peach
Pear

if the user selects apple then i want to be able to get 1 from the combo box since that is the spot it is in. if peach was selected then i want to get the place value of 3.

Thanks
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
In the Introduction forum posts like this means it can be from any programming language. Would you mind saying which one?
TheMan like this
TheMan's Avatar, Join Date: Dec 2010
Newbie Member
It was in vb but I was finally got a responce from my teacher .. i just used the index and added one for those with the same problem
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Moved to VB forum and great to see that it is solved.