P
Patrick
Hello - I can read the csv file line by line into a one dimensional array -
no problem. But when the data has 7 columns - and you'd like the Names to
appear in a combo box, it can get tricky.
Fred,0,0,0,0,0,0
Wilma,-1,1,0,0,0,0
Betty,1,0,0,0,-1,0
etc
I found examples elsewhere of using every language BUT VB.NET - so if
somebody wouldn't mind, please? Here is my current status, and even though
I'm only placing the name into a ComboBox now, I plan on making hay with the
rest of the data elsewhere.
Dim intCount as integer
Dim strPeople as string
If System.IO.File.Exists("c:\temp\test.csv") Then
objstreamreader = System.IO.File.OpenText("c:\temp\test.csv")
Do Until objstreamreader.peek = -1
strLine = objstreamreader.readline()
intCount = intCount + 1
Dim strPeople(,) As String = {{strLine}}
Me.RaceComboBox.Items.Add(strPeople(intCount, 1))
Loop
objstreamreader.close()
no problem. But when the data has 7 columns - and you'd like the Names to
appear in a combo box, it can get tricky.
Fred,0,0,0,0,0,0
Wilma,-1,1,0,0,0,0
Betty,1,0,0,0,-1,0
etc
I found examples elsewhere of using every language BUT VB.NET - so if
somebody wouldn't mind, please? Here is my current status, and even though
I'm only placing the name into a ComboBox now, I plan on making hay with the
rest of the data elsewhere.
Dim intCount as integer
Dim strPeople as string
If System.IO.File.Exists("c:\temp\test.csv") Then
objstreamreader = System.IO.File.OpenText("c:\temp\test.csv")
Do Until objstreamreader.peek = -1
strLine = objstreamreader.readline()
intCount = intCount + 1
Dim strPeople(,) As String = {{strLine}}
Me.RaceComboBox.Items.Add(strPeople(intCount, 1))
Loop
objstreamreader.close()