Q191589: BUG: Output Lines from TYPE Command Not Numbered
Article: Q191589
Product(s): Microsoft FoxPro
Version(s): WINDOWS:3.0b,5.0,5.0a,6.0
Operating System(s):
Keyword(s):
Last Modified: 11-DEC-1999
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Visual FoxPro for Windows, versions 3.0b, 5.0, 5.0a, 6.0
-------------------------------------------------------------------------------
SYMPTOMS
========
The output from the TYPE command does not contain line numbers when using the
NUMBER, AUTO, and WRAP options.
CAUSE
=====
When combining the AUTO, WRAP, and NUMBER options the lines beginning with
spaces are not parsed correctly. Therefore, some line numbers are omitted.
RESOLUTION
==========
Remove the spaces from the beginning of any lines in the text file.
STATUS
======
Microsoft has confirmed this to be a bug in the Microsoft products listed at the
beginning of this article.
MORE INFORMATION
================
Steps to Reproduce Behavior
---------------------------
1. Create a text file named Ztest.txt that contains the following data. When
adding the second line, press the space bar several times to add a few spaces
before typing the data.
Test line 1
Test Line 2
Test Line 3
Test Line 4
2. Close the text file and type the following line in the Command window:
" TYPE Ztest.txt NUMBER AUTO WRAP" (without the quotation marks)
Notice that the second line does not have a line number preceding it.
3. If you type the following, you get the proper line numbers:
" TYPE Ztest.txt NUMBER AUTO" (without the quotation marks)
Additional query words: kbXBase kbVFp500abug kbVFp300bbug kbVFp600bug
======================================================================
Keywords :
Technology : kbVFPsearch kbAudDeveloper kbVFP300b kbVFP500 kbVFP600 kbVFP500a
Version : WINDOWS:3.0b,5.0,5.0a,6.0
Issue type : kbbug
Solution Type : kbnofix
=============================================================================
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.