Article ID: 221646 - Last Review: May 12, 2003 - Revision: 2.1 FIX: ERR Files Contain Carriage Return and No LinefeedThis article was previously published under Q221646 On This PageSYMPTOMS
You compile a Visual FoxPro program file, form, class library, or report that contains at least one compile error. SET LOGERRORS is ON, which is the default, and this forces Visual FoxPro to write any compile errors to a .ERR file. When the .ERR file is opened within the Visual FoxPro editor, it will appear as expected with line feeds between each line, but if the file is opened with another editor, such as Notepad, no line feeds appear, and the text will all appear on a single line.
CAUSE
The .ERR file is written with a carriage return character (ASCII value 13) at the end of each line, but no line feed character (ASCII 10). The Visual FoxPro editor moves to a new line with each ASCII 13 character, but other editors such as Notepad may not.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: MORE INFORMATIONSteps to Reproduce Behavior
This line will cause an error![]Error in line 1: Unrecognized command verb.[]So will this one![]Error in line 3: Unrecognized command verb.[]
| Article Translations
|
Back to the top
