>>Hello Fox Gang!
>>
>>Today's question.....
>>
>>How to shutdown an app using a timer.
>>
>>Given I have an app, and I have a timer running in the base application form.
>>
>>The timer, when it fires, looks for a textfile in the root folder. If the file is there, it causes the app to begin to shutdown....
>>
>>Here is the relevant code...
>>
>>IF timetoshutdown
>> WAIT CLEAR
>> THISFORM.RELEASE()
>>ENDIF
>>
>>But, since there may be many forms on the screen at this time (someone may have left the app running when they went home)... I would rather have a shutdown routine instead of just THISFORM.RELEASE().
>>
>>Any ideas of a shutdown routine? I am assuming it would have to be able to drill down into the forms to shut them all down???
>>
>>Thanks!
>>Tommy
>
>There is an excellant article on this subject complete with code in the Jan 2007 issue of Advisor.
>
http://advisor.com/pub/MSVisualFoxProAdvisor>
>- Don
Thanks Don!
Tommy Tillman A+ NetWork+ MCP