Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message System Inside System
Message
From
30/11/2002 14:07:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/11/2002 13:53:01
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00728386
Message ID:
00728390
Views:
12
>hi to all experts
>I want to knowe how to pass message inside my system.
>in my system i have one programme this programme through i maintain my .DBF Table that time i want to inform all user who's currently working inside my system. so before file maintance start i want to pass one message to all user
>"Pls. LOgOut to System"
>
>thanks in advance
>
>regards
> Mazahir

I had this same problem. I solved it as follows:

1) Postpone most maintenance until midnight.

This wasn't enough; for instance, if index corruption is detected, the files need to be fixed immediately.

2) Create a global Timer that checks for the existence of a certain file ("maintenance.tmp"). If the file exists, the program will immediately execute the OnQuit() method of the application object - that is, react as if the user pressed Alt-F4. This doesn't guarantee that the program will quit immediately; if there are pending changes, the user will be asked to save them. If the user went to lunch, this logout procedure doesn't work. However, this doesn't seem to be a problem in actual practice.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform