Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why no Directory() like File()?
Message
De
10/12/1999 11:30:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301679
Message ID:
00301759
Vues:
28
>
>>handle = fopen("mydbf.dbf",12) && Try a RW open
>>if handle > 0 && Not in use elsewhere
>>   =fclose(handle)
>>   use mydbf exclusive
>>endif
>
>Much more elegant than what I did, which <b>was</b>:
>
>local lcOldError, llFailed
>lcOldError = on('error')
>on error llFailed = .t.
>use mytable excl
>if !empty(lcOldError)
>   on errer &lcOldError
>else
>   on error
>endif

Better yet VFP could have a function like UseExclusive(Params) returning logical :)
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