Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File in Use error
Message
De
01/06/2012 11:41:53
 
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
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01545063
Message ID:
01545065
Vues:
44
I haven't checked this out, but could it possibly be opening the database again under a different name since it's already open from the main program? Similar to

Use Sometable
**do some stuff
sele 0
Use newdrive:\somefolder\Sometable

If you open the data window it will show Sometable and the letter corresponding to the work area that it stuck the other sometable. So even though you're closing the database, it's still open as far as VFP is concerned?


>Hi Gang!
>
>My colleague is having a bit of a problem with databases in VFP 8.0 SP1.
>
>This is what he emailed me.....
>
>Here is what is happening:
>
>Database local_lbl is open from pharmmain.prg.
>
>The following code snippet gives me a file in use error on Line 5 (delete database…)
>
>IF FILE("c:\temp\local_lbl.dbc")
> SET DATABASE TO local_lbl
> USE IN SELECT("rx_label")
> CLOSE DATABASE
> DELETE DATABASE c:\temp\local_lbl deletetables
>ENDIF
>
>
>Any clues as to why he is getting this error? I don't see why at this point .....
>
>Thanks in advance!
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform