Option Explicit
' Purpose:
' Author:吴文智
' Date:2001-11-09
'Description:要试用本例请在窗体中填加一个按钮
' 然后在代码窗体中粘贴如下代码
' Good luck!Private Sub Command1_Click()
Dim PauseTime, Start, Finish, TotalTime
MsgBox "按确定后程序延迟3秒", vbInformation
Start = Timer ' 设置开始暂停的时刻。
Do While Timer < Start + 3 '对时间进行比较
DoEvents
Loop
MsgBox "延迟结束", vbInformation
End Sub
' Purpose:
' Author:吴文智
' Date:2001-11-09
'Description:要试用本例请在窗体中填加一个按钮
' 然后在代码窗体中粘贴如下代码
' Good luck!Private Sub Command1_Click()
Dim PauseTime, Start, Finish, TotalTime
MsgBox "按确定后程序延迟3秒", vbInformation
Start = Timer ' 设置开始暂停的时刻。
Do While Timer < Start + 3 '对时间进行比较
DoEvents
Loop
MsgBox "延迟结束", vbInformation
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货