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:
  1. frmMain.ListView1.Sorted = False
  2.     Dim strbig As String
  3.     Open App.Path & "\text.txt" For Input As #1
  4.     strbig = Input(LOF(1), 1)
  5.     a() = Split(strbig, vbCrLf)
  6.     Close #1
  7.     For i = 0 To UBound(a) - 1
  8.         Set lvEdit1 = frmMain.ListView1.ListItems.Add(, , a(i))
  9.     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