=sinister= Posted July 29, 2008 Posted July 29, 2008 I'm trying to make an Array from the Items of a ListBox, but I do not know how to get all the items from a listbox?
NELyon Posted July 29, 2008 Posted July 29, 2008 #include <GUIListBox.au3> #include <Array.au3> Dim $azArray[1] $hGUI = GUICreate("Test", 300, 300) $hListBox = GUICtrlCreateList("Test", 0, 0) GUICtrlSetData(-1, "Hi|Sup|Hola") GUISetState() For $i = 0 To _GUICtrlListBox_GetCount($hListBox) - 1 $azArray[$i] = _GUICtrlListBox_GetText($hListBox, $i) ReDim $azArray[UBound($azArray) + 1] Next _ArrayDisplay($azArray) While 1 Switch GUIGetMsg() Case - 3 Exit EndSwitch WEnd
=sinister= Posted July 29, 2008 Author Posted July 29, 2008 Exactly what I was looking for, great example, and fast! Thanks!
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