Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exclusive
Message
From
06/05/2005 14:58:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Oracle
Miscellaneous
Thread ID:
01011699
Message ID:
01011742
Views:
15
MAC address? We are not talking about a client-server system here; a database server might keep track keep track of how many users access it, based on IP or MAC, but in the case of VFP, this is responsibility of the operating system.

Some mechanism to control maximum number of users might be desirable; but I think another way must be found.

In the meantime: one mechanism I find interesting is to create a table with 1000 records, and have the executable do something like:
locate for rlock()
if not found() or recno() > MAX_USERS
  MessageBox("Too many users")
  return
endif
Of course, the responsibility of doing this check resides in the executable, and not in the database.
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