MMcBrine Posted May 21, 2008 Posted May 21, 2008 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
zorphnog Posted May 21, 2008 Posted May 21, 2008 Try using _GUICtrlListBox_GetSelItems($List1) or _GUICtrlListBox_GetSelItemsText($List1) to receive an array of the indexes or texts of the selected items.
MMcBrine Posted May 21, 2008 Author Posted May 21, 2008 Perfect, works like a charm, Thanks for the quick reply Cheers --Mike
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now