If 语句的问题~~
Correct To This:Private Sub Command1_Click()
gotoval = Me.Height / 2
For gointo = 1 To gotoval
DoEvents
Me.Height = Me.Height - 10
If Me.Height <= 11 Then GoTo horiz 'Correct
Next gointo
horiz:
Me.Height = 30
gotoval = Me.Height / 2
For gointo = 1 To gotoval
DoEvents
Me.Width = Me.Width - 10
If Me.Width <= 11 Then End 'Correct
Next gointo
End
End Sub
Correct To This:Private Sub Command1_Click()
gotoval = Me.Height / 2
For gointo = 1 To gotoval
DoEvents
Me.Height = Me.Height - 10
If Me.Height <= 11 Then GoTo horiz 'Correct
Next gointo
horiz:
Me.Height = 30
gotoval = Me.Height / 2
For gointo = 1 To gotoval
DoEvents
Me.Width = Me.Width - 10
If Me.Width <= 11 Then End 'Correct
Next gointo
End
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货