Particle Posted October 8, 2007 Share Posted October 8, 2007 Im trying to figure out how to read a list in a file and and display it in a list view....can someone show an example of this being done? Link to comment Share on other sites More sharing options...
Nahuel Posted October 8, 2007 Share Posted October 8, 2007 #include <GUIConstants.au3> GUICreate("Form1", 207, 303, 221, 123) $List1 = GUICtrlCreateList("", 8, 8, 185, 279) GUISetState() $Lines=InputBox("Testing", "How many lines do you want to read?", "", " M") if @error then exit For $i=1 to Number($Lines) GUICtrlSetData($List1,FileReadLine("mylist.txt",$i)&"|") Next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd mylist.txt: http://www.autoitscript.com/ http://www.autoitscript.com/autoit3/ http://www.autoitscript.com/forum/index.php? http://www.cafepress.com/autoit http://www.autoitscript.com/email_us.shtml http://www.autoitscript.com/autoit3/ http://www.autoitscript.com/AutoIt/ http://www.autoitscript.com/code/ http://www.autoitscript.com/autoit3/downloads.shtml http://www.autoitscript.com/donate.shtml http://www.autoitscript.com/autoit3/index.shtml http://www.autoitscript.com/autoit3/resources.shtml http://www.autoitscript.com/autoit3/resources.shtml http://www.autoitscript.com/autoit3/downloads_gfx.shtml http://www.autoitscript.com/code/ http://www.autoitscript.com/#top 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