新手求教!!代码问题在哪?
Private Sub Command1_Click()x = Val(Text1.Text) + Val(Text2.Text)
Text3.Text = x
End Sub
Private Sub Command2_Click()
x = Val(Text1.Text) - Val(Text2.Text)
Text3.Text = x
End Sub
Private Sub Command3_Click()
x = Val(Text1.Text) * Val(Text2.Text)
Text3.Text = x
End Sub
Private Sub Command4_Click()
x = Val(Text1.Text) / Val(Text2.Text)
Text3.Text = x
End Sub
为什么这个计算器计算小数时会出错啊?求高手指点一下