如何在一个过程中调用另一个过程中的参数
比如:
Private Sub Command1_Click()
dim p as integer 'p局部变量
p=......
End SubPrivate Sub Timer3_Timer()
Dim x As Integer
x = Val(Text2.Text) / 10
If Shape4.Left < 7025 Then
Shape4.Left = Shape4.Left + x*p 'p是另一个过程中的参数
Shape4.Top = Shape4.Top - x*p
Else
Shape4.Left = Shape4.Left + x
End If
End Sub
比如:
Private Sub Command1_Click()
dim p as integer 'p局部变量
p=......
End SubPrivate Sub Timer3_Timer()
Dim x As Integer
x = Val(Text2.Text) / 10
If Shape4.Left < 7025 Then
Shape4.Left = Shape4.Left + x*p 'p是另一个过程中的参数
Shape4.Top = Shape4.Top - x*p
Else
Shape4.Left = Shape4.Left + x
End If
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货