Private Sub Command1_Click()
For i = 0 To 3
If Option1(i).Value = True Then
opt = Option1(i).Caption
End If
Select Case opt
Case "+"
result = Val(text1.Text) + Val(text2.Text)
Case "-"
result = Val(text1.Text) - Val(text2.Text)
Case "*"
result = Val(text1.Text) * Val(text2.Text)
Case "/"
result = Val(text1.Text) / Val(text2.Text)
End Select
label4.Caption = result
End Sub