Results 1 to 2 of 2
  1. #1
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Multi select list box (XP)

    I want to put a list box on a form and allow the user to select more than one choice so have therefore set it to fmMultiSelectExtended in the controls properties.

    How can I get the value the user selected. I always get an error message saying "Invalid use of Null"

    Jerry
    Jerry

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Multi select list box (XP)

    You must use the SELECTED property of the listbox to get the items since the VALUE property is NULL.

    Look in the VB help under multiselect or the selection property and it has an example.

    Steve

Posting Permissions

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