Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid File Descriptor, file is already open by excel.
Message
From
26/01/2000 17:11:42
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
 
 
To
26/01/2000 14:38:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00322977
Message ID:
00323212
Views:
23
Thanks Cetin and Ed,

I guess great minds think alike. I'll try fopen() code.

I want to use the same name and directory for the file since it is easier for users to find the file.

Thanks again,

Paul


>
>
Paul,
>You could check it with lowlevel functions (fopen(), fcreate()) :
>
>
lcExcelFile = "c:\myPath\myExcel.xls"
>handle = fopen(lcExcelFile,12)
>if handle < 0 and ferror() = 5 && In use - access denied
>*....
>else
>=fclose(handle)
>endif
But what I prefer is to create xls file with a unique name :
>lcTempXLSFile = sys(2015)+".xls"
>
>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform