Jump to content

Get All Text From a ListBox?


Recommended Posts

#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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...