Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why no Directory() like File()?
Message
 
 
À
10/12/1999 10:38:56
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:
00301753
Vues:
32
>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
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform