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

Last reviewed: June 27, 1995
Article 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 "\<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.

  4. 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.

  5. 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


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.