VB编程那错了

来源:百度知道 编辑:UC知道 时间:2024/06/15 04:51:24
Private Sub Command1_Click()
Dim a, b, c, d As Long
a = Val(Text1, Text)
b = Val((Text2,Text)
c = Val(Text3, Text)
d = a + b + c(Text4, Text = d)
End Sub

a = Val(Text1.Text)
b = Val(Text2.Text)
c = Val(Text3.Text)
d = a + b + c
text4.text=d

d = a + b + c(Text4, Text = d) 这句该不会对的
你是不是要把a b c 相加放入不对到text4中呢?
那你就直接 text4.text=a+b+c 就可以了,不用d

d = a + b + c(Text4, Text = d)

这句出错了!!!