Jump to content

fileread for listview


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...