求教VB大神,小弟刚学VB,有一段程序求大神给每个语句解释注释一下,谢谢大神~ 10
PrivateStaticSubtimer2_timer(indexAsInteger)SelectCaseindexCase0Shape7(0).Top=Shape7(...
Private Static Sub timer2_timer(index As Integer)
Select Case index
Case 0
Shape7(0).Top = Shape7(0).Top + 40: Shape7(2).Top = Shape7(2).Top + 40: Shape7(3).Top = Shape7(3).Top + 40
Case 1
Shape7(0).Top = Shape7(0).Top - 40: Shape7(1).Top = Shape7(1).Top - 40
Shape7(2).Top = Shape7(2).Top - 40: Shape7(3).Top = Shape7(3).Top - 40
Case 2
Shape7(0).Left = Shape7(0).Left + 55: Shape7(1).Left = Shape7(1).Left + 55
Shape7(2).Left = Shape7(2).Left + 55: Shape7(3).Left = Shape7(3).Left + 55
Case 3
Shape7(0).Top = Shape7(0).Top + 40: Shape7(1).Top = Shape7(1).Top + 40
Shape7(2).Top = Shape7(2).Top + 40: Shape7(3).Top = Shape7(3).Top + 40
Case 4
Shape7(0).Top = Shape7(0).Top - 60: Shape7(2).Top = Shape7(2).Top - 60
Shape7(3).Top = Shape7(3).Top - 60: Shape7(2).Left = Shape7(2).Left - 7: Shape7(3).Left = Shape7(3).Left + 7
Case 5
Shape7(0).Left = Shape7(0).Left - 36: Shape7(2).Left = Shape7(2).Left - 36: Shape7(3).Left = Shape7(3).Left - 36: Shape7(1).Left = Shape7(1).Left - 36
Case 6
Shape7(2).Left = Shape7(2).Left + 7: Shape7(3).Left = Shape7(3).Left - 7
End Select
End Sub 展开
Select Case index
Case 0
Shape7(0).Top = Shape7(0).Top + 40: Shape7(2).Top = Shape7(2).Top + 40: Shape7(3).Top = Shape7(3).Top + 40
Case 1
Shape7(0).Top = Shape7(0).Top - 40: Shape7(1).Top = Shape7(1).Top - 40
Shape7(2).Top = Shape7(2).Top - 40: Shape7(3).Top = Shape7(3).Top - 40
Case 2
Shape7(0).Left = Shape7(0).Left + 55: Shape7(1).Left = Shape7(1).Left + 55
Shape7(2).Left = Shape7(2).Left + 55: Shape7(3).Left = Shape7(3).Left + 55
Case 3
Shape7(0).Top = Shape7(0).Top + 40: Shape7(1).Top = Shape7(1).Top + 40
Shape7(2).Top = Shape7(2).Top + 40: Shape7(3).Top = Shape7(3).Top + 40
Case 4
Shape7(0).Top = Shape7(0).Top - 60: Shape7(2).Top = Shape7(2).Top - 60
Shape7(3).Top = Shape7(3).Top - 60: Shape7(2).Left = Shape7(2).Left - 7: Shape7(3).Left = Shape7(3).Left + 7
Case 5
Shape7(0).Left = Shape7(0).Left - 36: Shape7(2).Left = Shape7(2).Left - 36: Shape7(3).Left = Shape7(3).Left - 36: Shape7(1).Left = Shape7(1).Left - 36
Case 6
Shape7(2).Left = Shape7(2).Left + 7: Shape7(3).Left = Shape7(3).Left - 7
End Select
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询