You're welcome.
>All works fine - thanks
>
>
>>Add a line, "On shutdown", before quit.
>>
>>>Then I get message cannot quit Visual Foxpro
>>>
>>>>Remove Cancel!!
>>>>
>>>>To shut down at a fixed time, you must compare time() to the fixed time.
>>>>
>>>>>I am trying to shut down an app using the timer
>>>>>
>>>>>timer interval is 40 milliseconds
>>>>>
>>>>>timer code is
>>>>>
>>>>>CLEAR EVENTS
>>>>>CLOSE databases
>>>>>cancel
>>>>>quit
>>>>>
>>>>>Nothing happens - what should I be doing?
>>>>>
>>>>>I would also prefer to shut down the app at a fixed time - how do I do this?