到底哪里错了???为什么会数据溢出??
c=a/(b*b)这句怎样错???
到底哪里错了???为什么会数据溢出??
c=a/(b*b)这句怎样错???
汗,你给a 与b赋值不能放到text的change事件中
而要放到command1_click事件中,还有你赋值语句没学清楚,以下是正确的代码:
Private Sub Command1_Click()
Dim a As Single, b As Single, c As Single
a = Val(Text1.Text)
b = Val(Text2.Text)
c = a / (b * b)
Text3.Text = c
End Sub