Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with flock()
Message
 
À
16/02/2005 10:48:57
Brian O'Donovan
Crescent Computers
Cork, Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00987457
Message ID:
00993197
Vues:
21
* Returns .T. if the file exists and it is possible to open for exclusive use
Function yesexclus
   Lparameters filename
   local IFP
   If .Not. "." $ Alltrim(filename)
      filename = Alltrim(filename) + ".DBF"
   Endif
   If File(Alltrim(filename))
      IFP = Fopen(Alltrim(filename), 2)
      =Fclose(IFP)
      IFP = Iif(IFP > 0, .T., .F.)
   Else
      IFP=.F.
   Endif
   Return IFP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform