PRB: Can't Find "\f" Using Find Command on Edit Menu

ID: Q109147

The information in this article applies to:

SYMPTOMS

When you are using the Find command on the Edit menu, FoxPro cannot find "\f" (without the quotation marks). If you are searching for "\f", a wait window containing "Not Found" appears in FoxPro for MS-DOS; in FoxPro for Windows, "Not Found" appears in the status bar.

In addition, if you try to search for any other character with a backslash in front of it, FoxPro finds the character, but it automatically adds a second backslash to the beginning of the "\<letter>" combination; for example, "\\g".

CAUSE

The "\" character is used to search for special characters. For example, "\t" means "tab", "\r" means "carriage return", and so forth.

RESOLUTION

To search for "\f", type "\\f" (without the quotation marks) in the Look For box in the Find dialog box.

MORE INFORMATION

Steps to Reproduce Behavior

1. Create a program that contains "abcdefghik\fabc\gdef" (without the

   quotation marks).

2. While that file is open, press CTRL+F to open the Find dialog box.

3. In the Look For box, type "\f" (without the quotation marks) and choose

   the Find button.

   In FoxPro for MS-DOS, a wait window containing "Not Found" will appear.
   In FoxPro for Windows, "Not Found" will appear in the status bar.

5. Repeat steps 2 and 3, but this time type "\g" (without the quotation
   marks) in the Look For box.

   FoxPro will find "\g" and highlight it.

6. Press CTRL+F. Note that "\\g" appears in the Look For box. This behavior
   will occur with any "\<letter>" combination other than "\f".

Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995