I am trying to work out a solution.
Question- What is the value in txtOutput after the following code is executed if strExampleValue is set to: a."XOX" b."XXX" c."OOX"
Private Sub btnOutput_Click (...
Dim strExampleValue As String
strExampleValue = "XOX" 'or the other value
If (strExampleValue = "XXX") Then
txtOutput.Text = "Choice 1"
ElseIf (strExampleValue = "OOO") Then
txtOutput.Text = "Choice 2"
ElseIf (strExampleValue = "OXO") Then
txtOUtput.Text = "Choice 3"
Else
txtOutput.Text = "Choice 4"
End If
End Sub
On my form i have created a txtbox, button, and another textbox for output. When I enter info from question XOX i get choice 4 for output but i get the same for all others. I don't know if I have set up my form correctly. I need some advice if I am doing correctly.
Question- What is the value in txtOutput after the following code is executed if strExampleValue is set to: a."XOX" b."XXX" c."OOX"
Private Sub btnOutput_Click (...
Dim strExampleValue As String
strExampleValue = "XOX" 'or the other value
If (strExampleValue = "XXX") Then
txtOutput.Text = "Choice 1"
ElseIf (strExampleValue = "OOO") Then
txtOutput.Text = "Choice 2"
ElseIf (strExampleValue = "OXO") Then
txtOUtput.Text = "Choice 3"
Else
txtOutput.Text = "Choice 4"
End If
End Sub
On my form i have created a txtbox, button, and another textbox for output. When I enter info from question XOX i get choice 4 for output but i get the same for all others. I don't know if I have set up my form correctly. I need some advice if I am doing correctly.