Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can to know how many persons using program ?
Message
From
14/09/1998 03:08:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/09/1998 02:53:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00136036
Message ID:
00136039
Views:
32
>I would like to pack database which use for sharing. I let program to pack every 1st of month. I would like the last user who quit program change exclusive to on automatic for using "Pack" cammand. How can we write the program to protect and check to open "Exclusive on or off" or whick command for checking the numbers of user who are using the program.
> From NO.
For that you don't need to know the number of users at the moment (2 or 10 would be same). Try a flock on tables and if succeed, turn on a flag for users that may login (ie: creation of a dummy text file could server as a fiag) then start your exclusive mode operations. If you keep a table for users in system you could only check it to see if anyone else is online too.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform