Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does Foxpro know if an Excel workbook is being modified?
Message
 
 
À
20/11/2000 13:45:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00443610
Message ID:
00443766
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform