Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting Users on Systen
Message
From
11/06/2004 22:57:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/06/2004 13:39:51
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00912816
Message ID:
00912968
Views:
11
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform