PRB: Unnecessary Carriage Returns in FoxPro for UNIX FilesLast reviewed: June 29, 1995Article ID: Q132102 |
The information in this article applies to:
SYMPTOMSIt is possible that FoxPro for UNIX files could have both carriage return (CR) and line feed (LF) (also called newline, abbreviated NL) characters in them. An editing program like vi would display the CR-LF pair as a control M (^M). This CR character may cause problems when printing or doing other operations.
CAUSEOne way to end up with unnecessary CR characters is to use functions that produce CR-NL pairs. For example, rather than using FPUTS(), use FWRITE() to write the string to a file, and then use an FWRITE() of CHR(10) to produce the UNIX-style NL character.
RESOLUTIONIf the file already has the CR characters in it:
|
Additional reference words: FoxUnix 2.60
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |