The following can be done to acieve what you want.
1. Create a DataBase with name, say MyUsers
2. Have fields for User Name etc.. for each user.
3. When ever a user is in, Open this database and lock the users record. The DBF can be opened in say 50 or so slot with an alais, and remember to leave this file open always. So whenever individual programs open database and closes, remember to close all except this user file. Only Quit from the software shall close this file. What we achieve by this is that the users record remains locked till he logs out.
4. Always check, if the users record is locked already, before locking the record. If it is already locked, it means he has loged in from station already. This is true, even if the user loged in from the same station.
5. Any accidental quit from software automaticaly unlocks the record. So this will not create a problem.
I am using this method successfuly for over 6 or 7 years now in various places.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
Ramani is sophisticated, very good.
It is possible try more simple way.
If you have any local table, (if no, create it)
your program may start with
...
on error do is_run
use Localtable excl
on error
...
proc is_run
if error() = 1705
wait "Sorry, application already run"
quit
endif
retu
Hi nigelgomm,
This is interesting. I have my vote for you. I am using it with little raping of my own.. and I will provide other forum users also have it with my wraps. (Hope you have no objection). Thanks again.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK
There is a program called FOXCHECK.EXE that I have used for quite a long time. If you execute this program using the following syntax:
FOXCHECK.EXE foxapp.exe
in your icon the FOXCHECK program will check to see if another session of FPW26 is open, and if so, notify the user that a session is already in use. It will not start another session. If no other FPW session is in use, the "foxapp.exe" will be executed.
I've used this for a while and it always works. However, it will not prevent others from using FPW 2.6 or runtime if the FOXCHECK program isn't executed first.
If you let me know what your e-mail address is I'll attach a copy of FOXCHECK for you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.