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:42:29
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/10/2012 05:37:46
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:
01554487
Vues:
54
>>>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))
>
Neat :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform