a、b两个数值进行交换,交换前和后的结果。
Private Sub Command1_Click()Dim m As Double, n As Double, t As Double
m = Val(Text1.Text)
n = Val(Text2.Text)
t = m
m = n
n = t
Text1.Text = m
Text2.Text = n
End Sub
Private Sub Text1_Change()
Text1.Text = 80
End Sub
Private Sub Text2_Change()
Text2.Text = 45
End Sub
请问我这么写。
两个数值为什么不交换呢?