Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting users to an app
Message
From
09/02/2005 09:41:34
 
 
To
09/02/2005 09:06:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00985054
Message ID:
00985150
Views:
20
You have to be careful with this method to not unlock the user record. That's why I like my solution.

>
>Create a table with as many records as you will have users (or more, doesn't matter). Lock a record for each user.
>
>
>locate for rlock()
>if recno() > MAX_USERS
>  ErrorMsg("You have reached the maximum number of users.")
>  return
>endif
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform