Hi:
I'm attempting to use the following code to import data to foxpro 7 from Excel.
cSpreadSheet='myspread.xls'
cSheet='C12'
IMPORT FROM (cSpreadSheet) TYPE XL8 SHEET (cSheet)
It works !
I can check to make sure there is a "myspread.xls" with file("myspread.xls" and reject if the file is not there.
The problem is: if the SHEET C12 is not in myspread.xls it goes bonkers and the trouble starts.
How can I programatically A) extract the sheets that are in a spreadsheet, or B) verify that a sheet is in the spreadsheet or B) detect and recover from the error.
TQ ... Wayne
PS: I'm relatively new to VFP although I have a background in VP 2.6 and Clipper.
I'm attempting to use the following code to import data to foxpro 7 from Excel.
cSpreadSheet='myspread.xls'
cSheet='C12'
IMPORT FROM (cSpreadSheet) TYPE XL8 SHEET (cSheet)
It works !
I can check to make sure there is a "myspread.xls" with file("myspread.xls" and reject if the file is not there.
The problem is: if the SHEET C12 is not in myspread.xls it goes bonkers and the trouble starts.
How can I programatically A) extract the sheets that are in a spreadsheet, or B) verify that a sheet is in the spreadsheet or B) detect and recover from the error.
TQ ... Wayne
PS: I'm relatively new to VFP although I have a background in VP 2.6 and Clipper.