Results 1 to 2 of 2

Thread: listboxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    12

    listboxes

    how can i check which item of a listbox is checked??

    because i have to work on with this information....

    please help me

    thx alex

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: listboxes

    Originally posted by alexschiefert
    how can i check which item of a listbox is checked??

    because i have to work on with this information....

    please help me

    thx alex
    You mean selected?

    loop through the items and check the .selected property. Those set to true are selected (multi-select listbox). Single select listbox, check the property ListIndex as it should be something other than -1. Then use .column(0) to retrieve the first column (usually the hidden ID of the row.


    Vince
    Last edited by Ecniv; Aug 23rd, 2005 at 08:01 AM.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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