Jump to content

Recommended Posts

Posted

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

Posted

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.

 

Posted

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

Posted

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

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
×
×
  • Create New...