Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer - How to
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00428999
Message ID:
00429005
Views:
18
>Hi Everyone,
>
>I have never use a timer contol before.
>
>I would like to use a timer control in my app that would allow me to quit the app after say 11:30pm reguardless where in the app that the user left (when home) it on the screen.
>
>All files are read only (no updates allowed).
>
>What would be the timer control steps to accomplish this?
>
>Main Form is modeless rest forms modal.
>
>Thanks in advance!
>Roland...

Set a public flag to .t. that you are quiting without return
Then start with Clear Events
The code after read events will try to close your forms just as with a normal shutdown.
Now if you have any code in your forms that would keep the forms open like asktoclose or something you can set code there to check first for the flag and then don't ask for closure.
You only have a problem if there is a messagebox open.
probably quit does work then
Previous
Reply
Map
View

Click here to load this message in the networking platform