帮我看看我的代码有什么问题


Private Sub Command1_Click()
Dim a, b, c, d As Double
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""

a = (Val(Text5.Text) - Val(Text6.Text)) / Val(Text5.Text)
b = (Val(Text7.Text) - Val(Text8.Text)) / Val(Text7.Text)
c = (Val(Text9.Text) - Val(Text10.Text)) / Val(Text9.Text)
d = (Val(Text11.Text) - Val(Text12.Text)) / Val(Text11.Text)
Increase(a,b,c,d)
End Sub


Private Sub Increase(ByVal x1 As Double, ByVal x2 As Double, ByVal x3 As Double, ByVal x4 As Double)
Text1.Text = Str(x1)
Text2.Text = Str(x2)
Text3.Text = Str(x3)
Text4.Text = Str(x4)
End Sub

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值