Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If file is used by another exclusively
Message
 
 
À
13/11/2008 21:12:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361833
Message ID:
01361834
Vues:
21
>How would I code
>
>IF another user has the file open exclusively
> whatever
>ENDIF
>
>Thanks, Randy

Just try to open the file in TRY/CATCH block
TRY
   use myFile shared
CATCH TO loException
  if loException.Error = 1705 && If memory serves right
     * file is in use by another user
  endif
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