PRB: Drive/Directory Not Found When Searching Text Region

Last reviewed: June 27, 1995
Article ID: Q120029
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6, 2.6a
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a
  • Microsoft FoxPro for Macintosh, versions 2.5x, 2.6a
  • Microsoft FoxPro for UNIX, version 2.6

SYMPTOMS

When you are searching in a text editing region for a drive letter and a directory name (for example, C:\FOXPROW), the string is not found, even though it is present. However, searching for the drive letter alone is successful.

CAUSE

FoxPro considers the first backslash an escape sequence. This is similar to the syntax used in the C programming language.

RESOLUTION

Search for the drive letter "C" and replace it with the letter "X," or search for C:\\FOXPROW.

STATUS

This behavior is by design. We will post new information here as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Type MODIFY FILE Test.txt in the Command window and press ENTER.

  2. Type "C:\FOXPROW" (without the quotation marks) in the text editing region.

  3. From the Edit menu, choose Find.

  4. In the Look For box, type "C:\FOXPROW".

  5. In the Replace With box, type "X:\FOXPROW" and select the Match Whole Word check box.

  6. Choose Find. "Not Found" will appear in the status bar, even though the text string is present.

For more information on searching for special characters, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q109147
   TITLE     : PRB: Can't Find "\f" Using Find Command on Edit Menu


Additional reference words: FoxWin FoxDos 2.50 2.50a 2.50b 2.50c 2.50x 2.60
2.60a
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.