Results 1 to 6 of 6

Thread: wait function--Resolved

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104

    Resolved wait function--Resolved

    Which is the best way to make my program wait for 10secs, before it executes the next step. Is there any thing similar to wait() function?

    Thanks in advance
    Last edited by kota_balaji; Dec 2nd, 2004 at 07:21 AM.

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    kota_balaji,

    Use the API call SLEEP 1000 * 10.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104
    Hey , how can use that API. Do i need to refer that? Sorry, I am new to VB.

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    kota_balaji

    Look here Download and install the API Guide for all VB Api calls.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    Brussels
    Posts
    104
    Thanks randem, it worked and thanks for the excellent site.

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Or this (untested) :

    [Highlight=VB]Public Sub Delay (iInt As Integer)
    Dim lStart As Long

    lStart = Timer

    Do while Timer - lStart < iInt
    DoEvents
    Loop
    End Sub[/vbcode


    Has someone helped you? Then you can Rate their helpful post.

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