How do I make a loop go untill I unload the Program?
Thanks.
-Lumin
Printable View
How do I make a loop go untill I unload the Program?
Thanks.
-Lumin
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
Thanks for the Replay.
If im going to use a Timer how would i do this then ?
can you show me?
Thanks.
-Lumin
You could go like this:
do
{code}
do events
loop
------------------
Website
[This message has been edited by *Super Sniper* (edited 02-14-2000).]
gah. It's not working. It doesn't like the line "do events", or is that supposed to be something else entirely?
DoEvents is one word.
from VB-help
Check the help for doevents.Quote:
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.
------------------
On Error Goto Bed =:0)
[email protected]