Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for open file
Message
 
 
À
18/01/2002 16:08:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00607039
Message ID:
00607042
Vues:
31
>How do I test if a file is already open? The file I want to check is a pdf file not a foxpro table. I've tried fopen() but it always gives me a valid handle regardless if it is open. Delete file gives me an error message if the file is open. Any ideas?
>
>Tim
Try to open the file for Read/Write.
lnFH = FOPEN(lcPdfFile, 12)
IF lnFH > 0
  =FCLOSE(lnFH)
ELSE
  * File is open somewhere else
ENDIF
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform