不会做加法运算器的判题按钮,求教一下。
我写的代码是:
Private Sub Command2_Click()
If Val(Text3.Text) = result Then
If Val(Text1.Text) + (Text1.Text) = result Then
MsgBox "恭喜你,答对了!"
Else
MsgBox "答案错误!"
End If
End If
End Sub
2014-06-22 16:34