|
-
May 6th, 2003, 03:34 AM
#1
Thread Starter
Hyperactive Member
.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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|