Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does Foxpro know if an Excel workbook is being modified?
Message
 
 
To
20/11/2000 13:45:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00443610
Message ID:
00443766
Views:
23
>Nadya,
>The low level file function idea does work well. Using fopen() returns -1 if you try opening an excel file for read\write access that is aleady opened by someone else. A potential problem I see is this: If fopen() returns a non -1 number logic tells you that the file is free to be modified. But what if from the time fclose() is issued to the time it takes Foxpro to open the excel object through ole someone else on the network opens that same excel file? This probably is a rare occasion, so maybe it will not matter.

Exactly. The probability is there, but it's very small.
See Coding, syntax & commands Re: Finding, if file is used exclusively Thread #425134 Message #425153
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform