I'm writing a text file based quiz. Importing the questions into my 2D array's headers and the questions lay under them in the rows.
I'm getting an error here:
Stating: "Relational operator expected"
However when I add an "=" stating option strict disallows type Object for operator and to use "Is" instead. Leading me into an infinite loop of errors.
Does anyone see a better way to do this?
I'm getting an error here:
Code:
Case Is QuizArray(0, 0)
However when I add an "=" stating option strict disallows type Object for operator and to use "Is" instead. Leading me into an infinite loop of errors.
Does anyone see a better way to do this?
vb.net Code:
Private Sub lstQuestions_SelectedIndexChanged(sender As Object, e As EventArgs) Handles lstQuestions.SelectedIndexChanged Select Case lstQuestions.SelectedItem Case Is QuizArray(0, 0) txtQuestion.Text = QuizArray(0, 0) txtAnswer1.Text = QuizArray(1, 0) txtAnswer1.Text = QuizArray(2, 0) txtAnswer1.Text = QuizArray(3, 0) txtAnswer1.Text = QuizArray(4, 0) End Select