1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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,276
    Likes Received:
    364
    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,276
    Likes Received:
    364
    Trophy Points:
    83
    Moved to VB forum and great to see that it is solved.
     

Share This Page