|
-
Feb 13th, 2000, 11:51 AM
#1
Thread Starter
Addicted Member
How do I make a loop go untill I unload the Program?
Thanks.
-Lumin
-
Feb 13th, 2000, 12:56 PM
#2
Member
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
-
Feb 13th, 2000, 01:12 PM
#3
Thread Starter
Addicted Member
Thanks for the Replay.
If im going to use a Timer how would i do this then ?
can you show me?
Thanks.
-Lumin
-
Feb 13th, 2000, 01:29 PM
#4
Lively Member
You could go like this:
do
{code}
do events
loop
------------------
Website
[This message has been edited by *Super Sniper* (edited 02-14-2000).]
-
Feb 13th, 2000, 02:04 PM
#5
Hyperactive Member
gah. It's not working. It doesn't like the line "do events", or is that supposed to be something else entirely?
-
Feb 13th, 2000, 03:49 PM
#6
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|