I have a program all i need to do is fix the last part, I keep getting an end of statment error and cant figure out how to fix it, and snytax error *
Private Sub CalcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalcButton.Click
'Select Case True
'This adds
Dim strChoice As String
strChoice = OperationGroupBox.Text
Select Case True
'AnswerLabel.Text = Val(UnitsTextBox.Text) * 10
Case RetailerRadio.Checked
if val(UnitsTextBox.text < 3 Then
UnitsTextBox.Text = 5 * Val(9) Then
else if
val(UnitsTextBox.text) > 8 then
*14
Elseif
val (UnitsTextBox.text) > 9 then
* 12
Case WholesalerRadio.Checked
If Val(UnitsTextBox.Text) < 4 Then
* 10
elseif
val(UnitsTextBox.text) >5 then
* 9
End If
End Select
End Sub
Private Sub CalcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalcButton.Click
'Select Case True
'This adds
Dim strChoice As String
strChoice = OperationGroupBox.Text
Select Case True
'AnswerLabel.Text = Val(UnitsTextBox.Text) * 10
Case RetailerRadio.Checked
if val(UnitsTextBox.text < 3 Then
UnitsTextBox.Text = 5 * Val(9) Then
else if
val(UnitsTextBox.text) > 8 then
*14
Elseif
val (UnitsTextBox.text) > 9 then
* 12
Case WholesalerRadio.Checked
If Val(UnitsTextBox.Text) < 4 Then
* 10
elseif
val(UnitsTextBox.text) >5 then
* 9
End If
End Select
End Sub
Comment