Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I check a Excel file or worksheet are openned ?
Message
De
08/10/2012 05:37:46
 
 
À
08/10/2012 05:21:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01554478
Message ID:
01554486
Vues:
51
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform