Jump to content

Reading a list to an array


Recommended Posts

Hey

I want to be able to read the contents of a regular list box out to an array. Sounds straightforward but I haven't yet been able to find a way to do it.

My application allows users to load text file lists into the list box, and manually add files to it. Then I want the program to read through the list box and perform operations on the files. It's all working fine apart from reading every line from the list box.

Can anyone offer any advice?

Cheers

Jonathan

Link to comment
Share on other sites

UDF's in the beta version should do the trick.

_GUICtrlListGetText

--------------------------------------------------------------------------------

Returns the item (string) at the specified index

#Include <GuiList.au3>

_GUICtrlListGetText($h_listbox, $i_index)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...