VB 关于蝴蝶飞舞的代码问题
PrivateSubTimer1_Timer()StaticpickbmpAsIntegerIfpickbmp=0ThenImage1.Picture=Image2.Pi...
Private Sub Timer1_Timer()
Static pickbmp As Integer
If pickbmp = 0 Then
Image1.Picture = Image2.Picture
pickbmp = 1
Else
Image1.Picture = Image3.Picture
pickbmp = 0
End If
End Sub
Private Sub Command1_Click()
End
End Sub
为什么用静态变量?还有就是请给我解释下
If pickbmp = 0 Then
Image1.Picture = Image2.Picture
pickbmp = 1
Else
Image1.Picture = Image3.Picture
pickbmp = 0
End If
这段代码是如何运行的?什么原理啊 展开
Static pickbmp As Integer
If pickbmp = 0 Then
Image1.Picture = Image2.Picture
pickbmp = 1
Else
Image1.Picture = Image3.Picture
pickbmp = 0
End If
End Sub
Private Sub Command1_Click()
End
End Sub
为什么用静态变量?还有就是请给我解释下
If pickbmp = 0 Then
Image1.Picture = Image2.Picture
pickbmp = 1
Else
Image1.Picture = Image3.Picture
pickbmp = 0
End If
这段代码是如何运行的?什么原理啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询