Sign in to follow this  
Followers 0
dj_judas21

Reading a list to an array

6 posts in this topic

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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Woo - I'm very impressed by the quick reply, thx.

I'll give your method a go - just out of interest (pls excuse the ignorance!) what does UDF stand for?

Cheers

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

<{POST_SNAPBACK}>

Share this post


Link to post
Share on other sites

Meh, still got problems. Tells me that $LB_GETCOUNT is not defined... any ideas?

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

<{POST_SNAPBACK}>

Share this post


Link to post
Share on other sites

No worries.... found the problem - had to declare a global constant. I'm a fumb duck! :whistle:

Cheers

Meh, still got problems. Tells me that $LB_GETCOUNT is not defined... any ideas?

<{POST_SNAPBACK}>

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  
Followers 0