Do I put the timer in the Utility program or behind the form itself (as a procedure)???
Sorry if I sound ridiculous, I'm still learning the language structure and I'm trying to maintain an existing program that's gone through 4 people. Their structure is difficult for me to find things.
IT can be either, it is a stand alone program / routine.
Use it just like a foxpro command word
you can put it in a form as a procedure, and expression, in a vaild statement, or
to code
PROGRAM TEST.PRG
close data
if timewait("17:00:00" = .f.
return
endif
do whatever_program_you_want David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
Need to check every 10 min on a file to see if the modified date has changed, if it has not changed then I need to throw up a flag on a form stating there has been no activity for 10 minutes.
[tt]
Store 600 to ccTimer
Store "" to lcThisTime, lcLastTime
do while .t.
lcLastTime = lcThisTime
lnFiles=adir(laAray , FileName2Check)
lcThisTime = laAray(4)
if lcThisTime != lcLastTime
throwup flags
endif
for x = ccTimer to 1 step -1
lcMsg = time() + chr(13) + ;
"Next Loop " + alltrim(str(x)) + chr(13) + ;
"Ctrl-End To Stop" + chr(13) + ;
"ESC For Next Loop"
wait lcMsg window nowait
lnLastKey = inkey(1)
do case
case lnLastKey = 27
exit
case lnLastKey = 23
exit
case lnLastKey = 159
exit
endcase
endfor
do case
case lnLastKey = 23
set step on
case lnLastKey = 159
exit
endcase
enddo
[/tt]
David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.