A
alvin Kuiper
Hi i try this:
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("h:\\mine databaser\tekst.txt")
Liste7.RowSource = ""
Do While Not a.readline = ""
Liste7.AddItem a.readline
Loop
In Tekst.txt i have 3 lines, i get number 2 lines and a error in :
Liste7.AddItem a.readline
Error: Input past end of file
And if i use:
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("h:\\mine databaser\tekst.txt")
Liste7.RowSource = ""
Do
Liste7.AddItem a.readline
Loop While Not a.readline = ""
a.Close
I get number 1 and number 3 lines in my tekst file
and again the same error
So what do i do wrong
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("h:\\mine databaser\tekst.txt")
Liste7.RowSource = ""
Do While Not a.readline = ""
Liste7.AddItem a.readline
Loop
In Tekst.txt i have 3 lines, i get number 2 lines and a error in :
Liste7.AddItem a.readline
Error: Input past end of file
And if i use:
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile("h:\\mine databaser\tekst.txt")
Liste7.RowSource = ""
Do
Liste7.AddItem a.readline
Loop While Not a.readline = ""
a.Close
I get number 1 and number 3 lines in my tekst file
and again the same error
So what do i do wrong