I'm having problems with an index of radio buttons that i have within a frame.
I have 4 option buttons in an index opt_team(0)-(3) which have Captions of 4 different sports teams.
The current way I'm doing it is workable but I dont think its proper.
I'm currently doing a Select Case when the opt_team_Click event occurs and then sending the results of the select case to a hidden textbox, which i then write the text to the file using write.
Here is my current code, can someone tell me how to do this basic procedure without the textbox?
Code:Private Sub opt_team_Click(Index As Integer) Select Case Index Case 0 txt_Team.Text = "Favorite Team: Boston Red Sox" Case 1 txt_Team.Text = "Favorite Team: MSU Bulldogs" Case 2 txt_Team.Text = "Favorite Team: New England Patriots" Case 3 txt_Team.Text = "Favorite Team: Boston Bruins" End Select End Sub




Reply With Quote