Combo Box

Discussion in 'Visual Basic ( VB )' started by TheMan, Dec 8, 2010.

  1. TheMan

    TheMan New Member

    Joined:
    Dec 8, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    In the Introduction forum posts like this means it can be from any programming language. Would you mind saying which one?
     
    TheMan likes this.
  3. TheMan

    TheMan New Member

    Joined:
    Dec 8, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Moved to VB forum and great to see that it is solved.
     

Share This Page

  1. 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.
    Dismiss Notice