Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check a Excel file or worksheet are openned ?
Message
From
08/10/2012 05:37:46
 
 
To
08/10/2012 05:21:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01554478
Message ID:
01554486
Views:
53
>>Hi,
>>Thank you for your reply,
>>
>>But I don't want to open the file, I just want to check the
>>file is opened or not, that let me create a new file to overwrite it.
>>
>>Any solution ?
>
>Well you just close it immediately after that. You don't do anything with it, just try to fopen() it to see if you can. If you can open it, then it's not open elsewhere.
 fileIsOpen = !fclose(fopen("yourfile.xls", 12))
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform