something is weird about this code...
hello,
I have a text file with two items in each line (seperated with a ",")
I use this code to put all the lines in a listview:
VB Code:
frmMain.ListView1.Sorted = False
Dim strbig As String
Open App.Path & "\text.txt" For Input As #1
strbig = Input(LOF(1), 1)
a() = Split(strbig, vbCrLf)
Close #1
For i = 0 To UBound(a) - 1
Set lvEdit1 = frmMain.ListView1.ListItems.Add(, , a(i))
Next i
everything works, the only thing is, in the 5th line the second item
comes before the first...
that's wierd... I don't know what is the problem....
can anyone help?
thanks
:wave: