>The client's server dies several times a week so if the users are kicked out of the app, how does the app know that the system was terminated abnormally and let the users back in when the file already exists? The problem is that I want this to be transparent to the users. If I give them a prompt saying " The App may already be running, are you sure you want to start it again?", the users will blow through the prompt without reading it.
>
>Because the orginal programmer placed CLOSE ALL through out her code, I cannot easily use my standard method of opening/creating a file and leaving it open while the app is running. The original programmer estimated 35 hours to remove all of the CLOSE ALL's within all of the programs. We were hoping for an answer that could be implimented quicker.
OK, then try to use my standard method:
AnotherApp=.f.
on error AnotherApp=.t.
use (set("reso",1)) again
if AnotherApp
Wait "I'm already incarnated, please don't reincarnate me in this life" window
quit
endif
use
on error
Make sure that the app is called with the same config.fp* every time - and state a specific, local "resource=....dbf" in it. This way the app will try to use the same foxuser.dbf each time, and get kicked out if it tries to do it twice.