Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Acctually Foxpro 2.6 DOS, only running one instance
Message
De
23/10/1998 16:18:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/10/1998 15:33:05
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00148447
Message ID:
00150003
Vues:
36
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform