PRB: Drive/Directory Not Found When Searching Text Region

ID: Q120029

The information in this article applies to:

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

Last Reviewed: June 27, 1995