Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USED function doesn't work right consistently
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01224984
Message ID:
01225025
Vues:
15
>I just discovered what you're saying is correct and then read your post. I changed my code to show the ALIAS only. I changed it to the following, after I realized that the function is looking for the ALIAS name and not also the whole path.
>
>
>IF !USED("CERTS")
>   USE E:\PRODUCTION\DATA\CERTS EXCLUSIVE IN 0
>ENDIF
>
This would not guarantee you can open this table exclusively. Somebody else may have it opened as well as it could be opened under different alias or in a different DS. Always put this block of code in try/catch construct.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform