
If Operator = "+" Then
Result = Operand1 + Operand2
End If 'note how you closed this If tag first
If Operator = "-" Then 'and then this one starts a new If tag
Result = Operand1 - Operand2
End If


Return to Visual Basic Programming
Users browsing this forum: No registered users and 0 guests