Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limiting Users on Systen
Message
De
11/06/2004 22:57:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
11/06/2004 13:39:51
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00912816
Message ID:
00912968
Vues:
10
>Hello All
>
>I want to be able to limit the number of concurrent users on my system. (Network Version). How do i go about it.
>
>TIA

Here is another alternative, to Craig's suggestions.

You can create a shared table with 100 (or 1000) records - the contents is irrelevant.

Create a lock for each user. Let's say you want a maximum of 10 users, in one particular installation.
MAX_USERS = 10
locate for rlock()
if recno() > MAX_USERS
  MessageBox("Buy more licenses.")
  cancel
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
Répondre
Fil
Voir

Click here to load this message in the networking platform