Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Users In The System. How to do it.
Message
From
16/02/2000 13:49:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/02/2000 08:13:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00332775
Message ID:
00333019
Views:
20
Craig,
AFAIK only the user who placed locks could unlock. I haven't tested it though:( I use a similar method that doesn't need and/or use locks but I think it would work. The second method on your site is nice (wish I have seen it before developing mine:)
Cetin

>I don't like the method recommended by Nigel. If some line does UNLOCK ALL, it fails. Look at the KB article, "Limiting Simultaneous Users", on my web site
>
>>HI!
>>
>>I have a function called users in system:
>>What it currently does is:
>>on the server I have a PROFILES folder
>>PROFILES -
>> USER1
>> foxuser.dbf
>> USER2
>> foxuser.dbf
>>
>>The program checks all user folders and tries to open the foxuser.dbf excl
>>If it fails then the user is assumed to be in the system.
>>
>>This solution usually works but often it shows some users which left the system
>>I think NT holds the files as a part of it's file caching therefor the excl call fails.
>>It seems this way because you also cannot delete the file at this time.
>>
>>Also it sometimes fails to pick up some users (I dopn't know why)
>>
>>What I am looking for is ideas on how to show the users that are in the system...
>>I used to have a login table with a record for each logged in user but when the program crashes
>>this record is not deleted and it appears there are users in the system.
>>
>>What do you people use if anything for this type of function?!?!?
Ç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
Next
Reply
Map
View

Click here to load this message in the networking platform