Sign in to follow this  
Followers 0
Particle

fileread for listview

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



#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:

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