In a VFP9 app I extract info from a DBF and use automation to format and write to an XLS sheet. In Excel, the user can then update certain cells before saving in 95/5.0 format. VFP then reads the resulting XLS file into a DBF and updates other parts of the system from this.
This was all fine using Excel in versions up to 2003, but with 2007 and 2010 if any date cells are edited, they become blank when reconverting to DBF format. (Existing dates that are exported but not edited in Excel remain intact upon reconversion.)
When creating the initial file with Automation the NumberFormat of the date columns is set to "Dd/Mm/Yy". The file is read back by VFP using the (rather outdated) 'APPEND FROM <fname> TYPE XLS'.
Clearly I now need a more sophisticated approach which must be able to cope with both the 'old' and 'new' Excel versions. What advice could anyone offer (preferably requiring the least changes to the current code)?
This was all fine using Excel in versions up to 2003, but with 2007 and 2010 if any date cells are edited, they become blank when reconverting to DBF format. (Existing dates that are exported but not edited in Excel remain intact upon reconversion.)
When creating the initial file with Automation the NumberFormat of the date columns is set to "Dd/Mm/Yy". The file is read back by VFP using the (rather outdated) 'APPEND FROM <fname> TYPE XLS'.
Clearly I now need a more sophisticated approach which must be able to cope with both the 'old' and 'new' Excel versions. What advice could anyone offer (preferably requiring the least changes to the current code)?