Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many users are on the system?
Message
 
À
16/03/1999 17:22:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00198357
Message ID:
00200347
Vues:
9
Stacy,

A similar method but better I believe if you have the possibility of the same user name logging in at more than one workstations is to use the MachineName from the Registry for the network machine. Since you will be using Win 95/98/NT they all have to have a unique name on the network so therefore you won't have any user name collisions. Plus if the machine crashes it can quickly find the record in the INUSE.DBF table quickly using a locate. I license by the workstation and not by the user since it is unprobable that the user will be running two apps on the same machine. Record the MachineName into the INUSE.DBF table and then do a LOCATE to see if they are already logged in. When you exit you can FLAG the Record for Deletion. If the user crashed and comes back in they can find their record and then you will have a chance to know if they crashed or not. You could also set a flag in the registry for checking for crashes as well such as Windows does when not shut down properly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform