Results 1 to 5 of 5

Thread: Wait state

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    13

    Wait state

    Hi all,

    I want to add a "wait state" to an procedure. So something like

    Procedure AAA

    Do XYZ
    Wait x seconds...

    End Sub

    How do i do this?

  2. #2

  3. #3
    Junior Member
    Join Date
    May 2011
    Location
    Virginia Beach, VA
    Posts
    22

    Re: Wait state

    You could also add this statement to a module...

    Code:
    Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

    ...and then call it using
    Code:
    Sleep 1000
    or whatever number. Just note that it's in milliseconds.

  4. #4

  5. #5
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    Re: Wait state

    VSCM

    As a matter of clarification, note that in RhinoBull's post #2,
    there is a difference:
    • function - he is using the Timer function
    • control - as distinct from a Timer control

    Spoo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width