How to Search for Character Strings Using RQBELast reviewed: April 29, 1996Article ID: Q105599 |
The information in this article applies to:
When you are trying to locate character strings using the Visual FoxPro Query Designer, or the FoxPro 2.x Relational Query By Example (RQBE) interface, the percent sign (%) is used to find character strings in character fields, and the dollar sign ($) is used to find character strings in memo fields.
ExamplesTo search for a character string in a character field, the lines in the selection criteria would resemble the following:
Filename.fieldname LIKE %Stringtobefound%To search for a string in a memo field, the lines in the selection criteria would resemble the following:
('Stringtobefound'$fieldname) = .t. Alternative MethodThis method brings up records that contain the search string in any field.
|
Additional reference words: FoxDos VFoxWin FoxWin 2.00 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |