Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why no Directory() like File()?
Message
De
10/12/1999 10:38:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/12/1999 10:24:05
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301679
Message ID:
00301717
Vues:
30
>>There is directory() and adir() (with "D" option).
>>Tey flock().
>
>Thanks, i looked in the help, but didn't notice any links to directory(). Of course, since i typed it exactly that way in the subject, i feel silly for not trying that in the help index. I've used adir(), but never tried it with directories (again, help would have told me this if i had thought to look)
>
>Does FLOCK() put the table in exclusive use mode? (so Pack/Zap will work)
>If so, then i could open it shared, then attempt to lock it... thanks again.


Not a true exclusive state but you can do operations like indexing. To get it to exclusive mode you could check with fopen.
handle = fopen("mydbf.dbf",12) && Try a RW open
if handle > 0 && Not in use elsewhere
   =fclose(handle)
   use mydbf exclusive
endif
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform