永发信息网

帮我解释一下下面程序的含义(VB的并每行大概意思帮助解释一下)谢谢

答案:1  悬赏:60  手机版
解决时间 2021-05-09 23:50
  • 提问者网友:送舟行
  • 2021-05-09 19:32

Private Sub Command1_Click(Index As Integer)
Dim i, j As Long
Dim a1, a2, a3, a4, a5, c As Long
If Index = 0 Then
For i = 0 To 10
For j = 0 To 18
BLK.MaskPos(i * 19 + j).Y = 32700 - i * 4000
Next
Next
Else
a1 = 12000
a2 = 9000
a3 = -6050
a4 = -8800 - 250
a5 = -24000
c = 1750

For i = 0 To 10
BLK.MaskPos(i * 19).X = a1
Next

For i = 1 To 8
For j = 0 To 10
BLK.MaskPos(j * 19 + i).X = a2 - (i - 1) * c
Next
Next

For i = 0 To 10
BLK.MaskPos(i * 19 + 9).X = a3
Next

For i = 10 To 17
For j = 0 To 10
BLK.MaskPos(j * 19 + i).X = a4 - (i - 10) * c
Next
Next

For i = 0 To 10
BLK.MaskPos(i * 19 + 18).X = a5
Next

End If

End Sub

最佳答案
  • 五星知识达人网友:慢性怪人
  • 2021-05-09 21:03
都只是变量和循环,你慢慢的弄清楚FOR就OK了
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯