Results 1 to 6 of 6

Thread: How do I make a loop go untill I unload the Program?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    How do I make a loop go untill I unload the Program?


    Thanks.


    -Lumin

  2. #2
    Member
    Join Date
    Feb 2000
    Posts
    43

    Post

    I'm not sure what you mean...

    the code

    Do
    [whatever]
    Loop

    will keep doing it 4ever but this would probably hang the program if you don't have any way of exiting the loop

    If you want to have an event automatically keep happening while the program runs... use a Timer control

    ------------------
    Rapmaster

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    Thanks for the Replay.

    If im going to use a Timer how would i do this then ?
    can you show me?

    Thanks.


    -Lumin

  4. #4
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    You could go like this:

    do
    {code}
    do events
    loop

    ------------------
    Website

    [This message has been edited by *Super Sniper* (edited 02-14-2000).]

  5. #5
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    gah. It's not working. It doesn't like the line "do events", or is that supposed to be something else entirely?

  6. #6
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    DoEvents is one word.
    from VB-help
    DoEvents
    Yields execution so that the operating system can process other events.

    DoEvents passes control to the operating system. Control is returned after the operating system has finished processing the events in its queue and all keys in the SendKeys queue have been sent.
    Check the help for doevents.

    ------------------
    On Error Goto Bed =:0)
    [email protected]

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