3个回答
2007-03-17
展开全部
定义pause 函数,直接调用就可以了
Public Declare Function GetTickCount Lib "kernel32" () As Long
Public Sub pause(HowLong As Long)
Dim u%, tick As Long
tick = GetTickCount()
Do
u% = DoEvents
Loop Until tick + HowLong < GetTickCount
End Sub
Public Declare Function GetTickCount Lib "kernel32" () As Long
Public Sub pause(HowLong As Long)
Dim u%, tick As Long
tick = GetTickCount()
Do
u% = DoEvents
Loop Until tick + HowLong < GetTickCount
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
VB用到API:
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
'暂停10秒:
Sleep(10000)
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
'暂停10秒:
Sleep(10000)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
是private Declare Function GetTickCount Lib "kernel32" () As Long吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询