Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting users to an app
Message
De
09/02/2005 09:41:34
 
 
À
09/02/2005 09:06:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00985054
Message ID:
00985150
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform