Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting to READ EVENTS from READ
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00796195
Message ID:
00796220
Views:
14
I only want to kick them out if they are at the MainMenu. Not, if they have a screen or report open. Is there any way to tell if they do have a screen or report open without modifying every screen and report?

Thanks.

>>In my VFP apps I now use READ EVENTS. The Quit command simply does a CLEAR EVENTS. Does anybody know of a simple way to implement the DoneYet functionality? I want to be able to shut down the app if the user is at the MainMenu.
>
>I have done something similar where I do use a timer that is running during the life of the app that fires about every minute. The code checks for a logical value in a "status" table. If I do change the status to .F., my users get a message on the screen to exit the app immediately or risk getting forced out. I also have a field in my status table on what time they will be kicked out if they do not respond. The timer also checks that field against the system clock. If the current time is at or after the kick-out time, I fire my app's shutdown procedure. The FALSE setting also prevents other users from starting the app.
Dennis Lindeman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform