I suspect there is an easier way to do this, but I brute force it within VFP. I make a field called UserLockOut on a system table used by all screens. System administrators can set UserLockOut. Then when other users go to open a screen, this field gets tested and they get thrown out, with a polite message of course. I also test it at login to keep new users from coming in when they aren't welcome.
I actually use the system administrator's login ID to fill the field so a he/she can set the flag, do work within the app, close the app leaving it locked, and be asked when he returns whether he wants to clear the lockout. Others who try to login are just locked out. You can also use a timer to continually check the UserLockOut field in case someone just leaves the app open, but I haven't needed that yet.
HTH
>I have a VFP executable installed on a network drive with multiple client machines running the executable from the network. If I have a user logged into my exe as an administrator for my exe that needs to run a process that requires everyone else to be out of the exe how do I automatically kick everyone else out of the vfp exe? Is there some sort of API call I can make? Anybody have experience handling this?
Larry Tucker