I am introducing an 'Import' function into my app to satisfy a user request.
The user wants to supply an xls spreadsheet - I have only ever imported a text file before so I am experimenting.
I have created a temp.dbf with the 4 required fields - one of which is ideally a memo field.
I have tried
APPEND FROM (importfile ) XLS - with or without TYPE
I get no records.
So to get _something_ I have converted the xls to csv and 'appended type csv' into another temp table with a c(240) field rather than a memo.
I have then scanned each record of the first temp table and Replaced the chr string into the second table's memo field.
All works fine - I see what I need to see in the new table.
But
1 The user wants to be able to 'import' xls files
2 The 3rd party app the table is used in requires a Memo field rather than a chr field .
I want to do the processing in the minimum code of course.
Has anyone any comments about how to Append from xls?
Regards
Coldan
The user wants to supply an xls spreadsheet - I have only ever imported a text file before so I am experimenting.
I have created a temp.dbf with the 4 required fields - one of which is ideally a memo field.
I have tried
APPEND FROM (importfile ) XLS - with or without TYPE
I get no records.
So to get _something_ I have converted the xls to csv and 'appended type csv' into another temp table with a c(240) field rather than a memo.
I have then scanned each record of the first temp table and Replaced the chr string into the second table's memo field.
All works fine - I see what I need to see in the new table.
But
1 The user wants to be able to 'import' xls files
2 The 3rd party app the table is used in requires a Memo field rather than a chr field .
I want to do the processing in the minimum code of course.
Has anyone any comments about how to Append from xls?
Regards
Coldan