拜托拜托~~VB一个窗体3个文本框,每个文本框填一个数字,然后点击按钮运算这些数字,怎么写?
PrivateSubCommand1_Click()Text4.Text=(xau+usd)/2*h/31.1035EndSubPrivateSubCommand2_Cl...
Private Sub Command1_Click()
Text4.Text = (xau + usd) / 2 * h / 31.1035
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Dim xau, usd, h
End Sub
Private Sub Text1_Change()
xau = Val(Text1.Text)
End Sub
Private Sub Text2_Change()
usd = Val(Text2.Text)
End Sub
Private Sub Text3_Change()
h = Val(Text3.Text)
End Sub
我不清楚哪里有问题…… 展开
Text4.Text = (xau + usd) / 2 * h / 31.1035
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Dim xau, usd, h
End Sub
Private Sub Text1_Change()
xau = Val(Text1.Text)
End Sub
Private Sub Text2_Change()
usd = Val(Text2.Text)
End Sub
Private Sub Text3_Change()
h = Val(Text3.Text)
End Sub
我不清楚哪里有问题…… 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询