>Hi. Is there a way to put a 15 minute delay in a prg? DO WHILE takes 100,000,000 loops just to get 1 minute!
There are several ways - a DO WHILE loop is probably amongst the worst, as it will use 100% of a CPU if you let it, and a fixed number of loops will take different amounts of time on CPUs of different speeds.
An old Fox way to do it is INKEY():
=INKEY( 900 )
You could use the WinAPI Sleep function:
http://news2news.com/vfp/?group=58&function=80Or, you could use a VFP timer control, and set its .Interval property to 900000 (900,000 milliseconds, equal to 900 seconds or 15 minutes).
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up