VB6自定义延时函数
(2022-04-18 09:14:49)
VB6自定义延时函数
━━━━━━━━━━━━━━━━━━━━━━━━━
Option Explicit
Public Sub sleep(m As Integer) '延时函数sleep
Dim a As Single
a = Timer
begin:
If Timer - a < m Then
GoTo begin
End If
End Sub
Private Sub Command1_Click()
Cls
Print "hello"
VBA.DoEvents
sleep 2
Print "everybody"
VBA.DoEvents
sleep 4
Print "live you"
End Sub
喜欢
0
赠金笔
加载中,请稍候......