Jump to content
Sign in to follow this  

Question about selecting multiple items in a listbox

Recommended Posts

Hey all,

I am running in to a bit of difficulty having a list box return multiple selections from a list box. The box is creating fine and you can select multiple entries however the GUICtrlRead is only returning the last item selected.


$List1 = GUICtrlCreateList("", 24, 128, 193, 97, BitOR($LBS_SORT,$WS_BORDER,$LBS_EXTENDEDSEL))


$Name = GUICtrlRead ($List1)

Any thoughts?


Share this post

Link to post
Share on other sites

Try using _GUICtrlListBox_GetSelItems($List1) or _GUICtrlListBox_GetSelItemsText($List1) to receive an array of the indexes or texts of the selected items.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...