>I am looking for a way to make my application timeout if the user is not doing anything.
>
>Kind of like the way the old READ TIMEOUT used to work.
>
>Has anyone done this?
>
>Trish
You have to implement two things:
1. Add _SCREEN.Timer object with code in Timer event to reset a flag:
*** Timer.Timer event
if oApp.quitflag=.f.
oApp.quitflag=.t.
else
do quitapp
endif
return
2. Timer will fire this code e.g. every 10 minutes and you should add to various places if your application (e.g Form.MouseMove events) following line:
oApp.quitflag=.f.
Edward Pikman
Independent Consultant