Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many users are on the system?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00198357
Message ID:
00198377
Views:
15
Hey, that sounds like a winner...

I will give this a try. VFP comes through again!

I appreciate your input, thanks.






>Stacy,
>
>The best method I've found is to create a user table with one record for every potential login. When you run the application it finds an unlocked record and locks it. When the application ends the lock is released. I augment this with a table or ini file that contains the max number of users and a code calculated from that number using a formula that the user doesn't know. When the app starts you make sure there aren't more records in the user table than the max number.
>
>>Can anyone help me with finding out how many users are logged on to a VFP exe at any given time?
>>
>>We are going to start charging our multi-user software based on the number of concurrent users on the system.
>>
>>
>>Currently, I am using a kludgy .ini file to store the number of logins and logoffs to the system. This works fine until someone shuts down the computer when the program is running or a machine crashes for some reason.
>>
>>I can make the system reckognize a crash and not count again on the next login, but I would really like a more solid evaluation of the data. Also, evaluating the program in some alternative way would prevent the power user from being able to modifiy the number of users logged into the system by editing an ini file.
>>
>>There must be a better way, maybe a COM control or something flashy...
Thanks,

Stacy



Black Mountain Software, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform