I am doing a Select Case where I am trying to keep track of the members who have joined club the members go by Bronze, Silver, and Gold I am trying to read them out of the newmembs.txt in order, all bronze the all silver then of coures all gold heres what I got but I am having trouble with what I got, can you look at what I got, Thanks Steve T
Dim vmembers As String
Dim bronze As Integer
Dim silver As Integer
Dim gold As Integer
FileOpen(1, "newmembs.txt", OpenMode.Input)
Do Until EOF(1)
Input(1, vmembers)
Select Case vmembers
Case "bronze"
bronze = 1 + bronze
Case "silver"
silver = 1 + silver
Case "gold"
gold = 1 + gold
Case Else
End Select
Loop
lstout.Items.Add(bronze & silver & gold)
End Sub
End Class
Dim vmembers As String
Dim bronze As Integer
Dim silver As Integer
Dim gold As Integer
FileOpen(1, "newmembs.txt", OpenMode.Input)
Do Until EOF(1)
Input(1, vmembers)
Select Case vmembers
Case "bronze"
bronze = 1 + bronze
Case "silver"
silver = 1 + silver
Case "gold"
gold = 1 + gold
Case Else
End Select
Loop
lstout.Items.Add(bronze & silver & gold)
End Sub
End Class