PRB: Number of Records IMPORT/EXPORTed to Spreadsheet DiffersID: Q109839 The information in this article applies to:
SYMPTOMSIf you use the COPY TO or EXPORT TO commands to export a database to a spreadsheet file type, and then use the APPEND FROM or IMPORT FROM commands to import that spreadsheet back into a database, the number of records FoxPro reports copied (during the export) is one less than the number of records it reports added (during the import).
CAUSEWhen you are copying to a spreadsheet file type, the COPY TO and EXPORT TO commands add an extra record (row) to the beginning of the destination file (spreadsheet). This record contains the names of the database fields and is not included in the FoxPro message that reports the number of records copied, since it is not an actual database record. However, when the APPEND FROM or IMPORT FROM command imports the records (rows) from that same spreadsheet back into a database, the extra record containing the field names is treated like any other record in the spreadsheet, so FoxPro includes it when reporting the number of records added/imported.
MORE INFORMATIONThis information applies to the following file types:
Steps to Reproduce Behavior1. Start FoxPro. 2. Create and run a program with the following code:
For more information about the extra row created by the COPY TO and EXPORT
TO commands, query on the following words here in the Microsoft Knowledge
Base:
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b
KBCategory: kbprg kbprb
KBSubcategory: FxinteropSpread
|
|
Last Reviewed: June 26, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |