Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to see if file can be used exclusive w/o causing err
Message
De
15/08/2000 13:25:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00405024
Message ID:
00405081
Vues:
21
>>Delete ?
>>
handle=fcreate(lcFile)
Cetin
>
>Actually my method is the FOPEN()/FCLOSE() pair, not FLOCK() - kind of similar, though.
>
>
nTry = FOPEN(cFile)
>if nTry >= 0
>  =FCLOSE(nTry)
>  USE (cFile) in 0 EXCL
>else
>  * forget it
>endif

That's the exact way I check :) Slight modification :
ntry = fopen(cFile,12)
Just paranoia :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform