Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File is in use
Message
 
 
À
20/12/2004 22:22:24
Nitin Parulekar
New Zealand Software Corp Ltd
Hamilton, Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
00970862
Message ID:
00970878
Vues:
34
With VFP9 the AUSED() function has a new parameter to determine this one, but in the meanwhile you will have to use your own UDF:
Function IsDBFused
LPARAMTER tcDBF

LOCAL llIsUsed
llIsUsed = .F.
TRY
  USE (tcDBF) IN 0 EXCLUSIVE
CATCH
   llIsUsed = .T.
FINALLY
   USE IN (SELECT(tcDBF))
ENTRY

RETURN llIsUsed
HTH

>i just found out other program opened that table with different alias and that's what causing the problem.
following code should reproduce error for anyone
USE nir
USE nir ALIAS nira
SELECT * from nir INTO CURSOR c1 readwrite
USE IN SELECT('c1')
USE IN SELECT('nir')
USE nir && this line gives file is in use error
>i am wondering is there any way to find out if a table is open with different alias
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform