Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it running??
Message
De
31/10/2003 21:27:21
 
 
À
31/10/2003 07:29:50
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00844878
Message ID:
00845304
Vues:
26
Dorin,

>>You can open another file with low level function FOPEN({file},1). If the file is already opened by another app, then FOPEN() returns -1 and FERROR() returns 5 (Acces denied) .

That solution implies that your application starts, creates the file, and eventually exits normally erasing the file. But what happens if your application crashes or there is some other irregular exit? I think checking for a window with your application's caption is probably more reliable.

David
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform