voteRead(subscript).count = convert.ToInt32(tally.Substring(colonIndex+1))
I've attached the additional code below. Can anyone assist?
If My.Computer.FileSystem.FileExists(file) Then
fileContent = My.Computer.FileSystem.ReadAllText(file)
For subscript As Integer = 0 To 2
newLineIndex = fileContent.IndexOf(ControlChars.NewLine, nameIndex)
tally = fileContent.Substring(nameIndex, newLineIndex - nameIndex)
colonIndex = tally.IndexOf(": ", 0)
voteRead(subscript).name = tally.Substring(0, nameIndex)
voteRead(subscript).count = convert.ToInt32(tally.Substring(colonIndex+1))
candidateListBox.Items.Add(voteRead(subscript).name)
nameIndex = newLineIndex + ControlChars.NewLine.Length
Next subscript
This post has been edited by JackOfAllTrades: 22 March 2010 - 10:57 AM
Reason for edit:: Added code tags. PLEASE!!! [code]...PUT YOUR CODE IN HERE!!!...[/code]

New Topic/Question
Reply




MultiQuote




|