Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
只有一个参数,就是要停止的毫秒数
sleep 1000 '停止1秒

解决方案 »

  1.   


    是sleep(1000)吧!
    1000=1秒
      

  2.   

    sleep()函数的作用是挂起当前的线程,将系统的控制权交还给操作系统。
          dwMilliseconds  参数的意义:Specifies the time, in milliseconds, for which to suspend execution. A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. A value of INFINITE causes an infinite delay. 
      

  3.   

    shawls注意:函数调用如果不关心返回值的话不要加括号。