Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for open file
Message
 
 
To
18/01/2002 16:08:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00607039
Message ID:
00607042
Views:
33
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform