Results 1 to 3 of 3

Thread: ComboBox and Xtra Data

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    ComboBox and Xtra Data

    Ok, I have a combo box loading 30 values from the DB BUT I want to load the items id in the tag property but it only stores one value for the whole combo box. How can I store the id in like a hidden field so when the user selects the item I pass only the id?

    Get it?

    Thanks

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    is this normal VB as opposed to ASP etc?

    if so, you can use the ItemData property, which is a second list (numeric only) which matches the items in the main list.

    To use it:

    combo1.additem "item"
    combo1.ItemData(combo1.NewIndex) = Id_no

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    Originally posted by si_the_geek
    is this normal VB as opposed to ASP etc?

    if so, you can use the ItemData property, which is a second list (numeric only) which matches the items in the main list.

    To use it:

    combo1.additem "item"
    combo1.ItemData(combo1.NewIndex) = Id_no
    GREAT! That was it. Thank you very much.

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