I'm just wondering if anyone has ever used the
import from &mfile TYPE XL8 SHEET "sheet" command and used the If found() function after it to determine if the sheet "sheet" exists. I did this and it seems to work so I issue a return to stop the rest of the code from running. If I execute the same code again though it say's file in use.
I think the import command is leaving the file open and not closing it because it encounters an error with the sheet not exisiting in the xls file. Is there any way to force foxpro to close the excel file it left open?
Thanks,
Ryan
import from &mfile TYPE XL8 SHEET "sheet" command and used the If found() function after it to determine if the sheet "sheet" exists. I did this and it seems to work so I issue a return to stop the rest of the code from running. If I execute the same code again though it say's file in use.
I think the import command is leaving the file open and not closing it because it encounters an error with the sheet not exisiting in the xls file. Is there any way to force foxpro to close the excel file it left open?
Thanks,
Ryan