3个回答
展开全部
把 private declare sub sleep lib “kernel32” (byval dwmilliseconds as long)
放在private sub command7_click() 之前
如 private declare sub sleep lib “kernel32” (byval dwmilliseconds as long)
private sub command7_click()
最好是放在最前面
例子
Private Declare Sub sleep Lib "kernel32" (ByVal dwmilliseconds As Long)
Private Sub Command1_Click()
i = 1
s = 0
Do While i <= 99
s = s + 1 / i
i = i + 2
Loop
Print s
End Sub
Private Sub Command2_Click()
End Sub
放在private sub command7_click() 之前
如 private declare sub sleep lib “kernel32” (byval dwmilliseconds as long)
private sub command7_click()
最好是放在最前面
例子
Private Declare Sub sleep Lib "kernel32" (ByVal dwmilliseconds As Long)
Private Sub Command1_Click()
i = 1
s = 0
Do While i <= 99
s = s + 1 / i
i = i + 2
Loop
Print s
End Sub
Private Sub Command2_Click()
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
声明是写在事件外的 就是顶上第一行 不要有代码 然后把这代码复制就行了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询