Fred I don't really understand what I'm doing with Sleep In Win32API Integer nMilliseconds That is what I am basing my question on. I also don't understand what I have to do to run a scheduled task? Thanks Jerry
-----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Fred Taylor Sent: Sunday, February 17, 2013 2:46 PM To: ProFox Email List Subject: Re: SLEEP? I don't understand. Sleep just "pauses" your executable, it's still "running". It only comes back to a "live" state when the Sleep duration has expired. Maybe you really want to run a scheduled task? Fred On Sun, Feb 17, 2013 at 12:59 PM, jerry foote <[email protected]> wrote: > I have a form that I run with a timer event that fires every 15 minutes, I > check to see if the time is between 10:00pm and 10:20pm, if so I call a > routine to do some daily dusting and cleaning. I only want this to fire > once > a day so I am using the sleep to insure that the time will only fall once a > day. But the program runs all day every day. > Jerry > > -----Original Message----- > From: ProFox [mailto:[email protected]] On Behalf Of Fred Taylor > Sent: Sunday, February 17, 2013 1:51 PM > To: ProFox Email List > Subject: Re: SLEEP? > > I do believe that since VFP is single threaded, you won't come back from > the first call until the time has expired. > > Fred > > > On Sun, Feb 17, 2013 at 12:38 PM, jerry foote > <[email protected]>wrote: > > > Sleep In Win32API Integer nMilliseconds > > > > Sleep((60*1000)*15) > > > > > > > > If I issue this sleep function in a procedure how long is it in scope. Do > I > > have to release it before I call it again, or can I just issue > > Sleep((60*1000)*15) again? > > > > Hope this makes sense. > > > > Jerry > > > > > > > > > > > > > > > > --- StripMime Report -- processed MIME parts --- > > multipart/alternative > > text/plain (text body -- kept) > > text/html > > --- > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/9D6FC317F1AA474A81FBE49A6F32C3FD@jerryfootePC ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

