dj_judas21 Posted August 4, 2005 Share Posted August 4, 2005 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 More sharing options...
GaryFrost Posted August 4, 2005 Share Posted August 4, 2005 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 More sharing options...
dj_judas21 Posted August 4, 2005 Author Share Posted August 4, 2005 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?CheersUDF's in the beta version should do the trick.<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
GaryFrost Posted August 4, 2005 Share Posted August 4, 2005 User Defined Functions 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 More sharing options...
dj_judas21 Posted August 4, 2005 Author Share Posted August 4, 2005 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}> Link to comment Share on other sites More sharing options...
dj_judas21 Posted August 4, 2005 Author Share Posted August 4, 2005 No worries.... found the problem - had to declare a global constant. I'm a fumb duck! CheersMeh, still got problems. Tells me that $LB_GETCOUNT is not defined... any ideas?<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
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