Jump to content
Sign in to follow this  
MMcBrine

Question about selecting multiple items in a listbox

Recommended Posts

MMcBrine

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.

LISTBOX CODE

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

READ CODE

$Name = GUICtrlRead ($List1)

Any thoughts?

Mike

Share this post


Link to post
Share on other sites
zorphnog

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
MMcBrine

Perfect, works like a charm,

Thanks for the quick reply

Cheers

--Mike

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  

×