为什么定义一个变量,和不定义一个变量差别这么大
Private x As IntegerPrivate Sub Command1_Click()
x = 5: y = 3
Call Proc(x, y)
Label1.Caption = x
Label2.Caption = y
End Sub
Private Sub Proc(ByVal a As Integer, ByVal b As Integer)
x = a * a
y = b + b
End Sub
运行结果x=25,y=3
加一句Private y As Integer
x=25,y=6