Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File is in use !!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01145923
Message ID:
01145977
Vues:
15
>My code is below :
>
> DO while Used('sozluk')
> USE in 'sozluk'
> EndDo
> If Used('sozluk')
> USE in 'sozluk'
> EndIf
> USE sozluk Exclusive In 0
> Select sozluk
>
>table of sozluk is closing in Do while...enddo. Althought not work second 'Use in' in If...Endif naturely, but i got error on Use sozluk alias.... that 'File is in use' ... Weird. What is my fault ??
>
>thnx.

I don't see a reason for While loop. Just simply do
local loEx
use in select('sozluk')
try
   use sozluk Exclusive In 0
catch to loEx
   =messagebox('File Sozluk could not be opened because of ' + m.loEx.message)
endtry
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform