Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / DBP - Help Plz

Author
Message
Rizzle
18
Years of Service
User Offline
Joined: 1st Aug 2006
Location:
Posted: 2nd Aug 2006 03:54
I need to execute a Sleep command, but I want the loop to continue running while my function is sleeping...

any advice?

QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 2nd Aug 2006 06:56
Just use the timer to find out how much time has gone by, and don't reset the variables to zero until that time has elapsed. Store the value from the timer() function into a variable, like oldTime#, then check

which is 30 seconds.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 2nd Aug 2006 12:40
Rizzle, your sleep command will sleep for .03 seconds. Is this what you want? All you need to do is to type in the amount of seconds that you want it to wait for, and add 3 0s to it! 3 seconds would be 3000. Anyway, QuothTheRaven's idea should work try that.

Rizzle
18
Years of Service
User Offline
Joined: 1st Aug 2006
Location:
Posted: 2nd Aug 2006 17:27
Ya...that code was just example...I got it now thank you much Quoth I owe you one

Login to post a reply

Server time is: 2024-09-25 05:20:50
Your offset time is: 2024-09-25 05:20:50