Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rlock() / isrlocked()
Message
 
To
02/01/1998 11:30:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00068858
Message ID:
00069035
Views:
57
>Another approach to this is to use an active flag in your users table. So, instead of checking the lock, when a user logs out or in you toggle the flag. Why? Because you might have some cases where user's can log in more than once.
>
>>I have a login screen in my vfp app that tests for a record lock before allowing users to login. If this lock fails, it
>...snip

I do have a logical field that is populated when a user logs in, however, when the application is not exited normally (Crash etc.) the user is still flagged as being logged on. That is why I used the locking technique. In this particular app I cannot allow concurrent logins. The locking works fine now as I was using the isrlocked() function when I should have been using rlock().

Thanks for your help!

john.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform