PRB: COPY TO TYPE DELIMITED Differs in Various FP VersionsLast reviewed: January 10, 1997Article ID: Q156773 |
The information in this article applies to:
SYMPTOMSIn Visual FoxPro 5.0, the COPY TO <filename> DELIMITED WITH BLANK command places quotation marks around character fields and preserves leading blank spaces within character fields. Other versions of FoxPro create text files that are slightly different in their format. You should be aware of the possible differences if you use this command under a previous version of FoxPro to port to Visual FoxPro 5.0.
WORKAROUNDIf the character fields do not need quotation marks around them, use the COPY TO <filename> TYPE SDF command.
STATUSThis behavior is by design.
MORE INFORMATIONDifferent versions of FoxPro produce slightly different text files using the same command. Depending on the version, leading spaces may be truncated or quotation marks may be added to character fields. For example, COPY TO <filename> DELIMITED WITH BLANK in FoxPro 2.6a for Windows produces a text file that does not contain quotation marks around the character fields. If a character field contains leading spaces, they remain. However, Visual FoxPro 3.0b exhibits different behavior. The text file contains no quotation marks around the character fields and leading spaces are trimmed from the fields. Visual FoxPro 5.0 produces a text file that preserves leading spaces and places quotation marks around each character field. This is the intended behavior of the product. The following text comes from the "COPY TO" Help file topic:
DELIMITED Creates a delimited file. A delimited file is an ASCII text file in which each record ends with a carriage return and linefeed. The default field separator is a comma. Since character data may include commas, character fields are additionally delimited with double quotation marks. Steps to Reproduce Behavior
|
KBCategory: kbusage kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |