.NET listview and Array using Split
i imported a text file with a list of names in this format...
firstname lastname
i have it split at the space so that each time it goes through the loop x = firstname, then next loop = lastname
i am trying to populate a listview so that column one is the firstnames and column two are the lastnames.... i can't seem to get it to work. any ideas? thank you.
intNames = strInput.Split(" ")
For x = 0 To intNames.GetUpperBound(0)
lvwNames.Items.Add(intNames(x))
lvwNames.Items(x).SubItems.Add(1).Text = intNames(x)
Next