Results 1 to 4 of 4

Thread: combobox items

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    2

    Lightbulb combobox items

    Ok, i have a list in the combobox, and i have the ItemData.. now whenever i put the value for the item (eg 1,2,3, etc.) it resets to 0, what is going on, and how can i go around this?

  2. #2
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    I dont really understand the question, but what code are you using at the moment?

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Posts
    2
    this:

    PHP Code:
    Combo1.ItemData(Combo1.ListIndex
    I have a list, and each one has a different number associated to it, so here is a sample of what i mean:

    General = 1
    News = 2
    Games= 13
    Time = 3

    But when i use the ItemData property to place the values, the simgle digit numbers get reset to 0..

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    VB Code:
    1. Combo1.AddItem "General"
    2. Combo1.ItemData(Combo1.NewIndex) = 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width