Microsoft KB Archive/109147

{| = PRB: Can't Find "\f" Using Find Command on Edit Menu =
 * width="100%"|

ID: Q109147

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

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 "\ " 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.

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 "\ " combination other than "\f". Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
 * }