Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting users to an app
Message
De
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:
00985105
Vues:
32
>I'm looking to change my application license to be based on number of users. For that reason, I need to monitor number of users of my app and prevent too many users from using it.

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
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform