Microsoft KB Archive/105599: Difference between revisions
m (Text replacement - """ to """) |
m (Text replacement - "<" to "<") |
||
Line 58: | Line 58: | ||
This method brings up records that contain the search string in any field. | This method brings up records that contain the search string in any field. | ||
<ol> | <ol> | ||
<li>Select " | <li>Select "<expression...>" from the Field Name list box.</li> | ||
<li>In the Expression text box of the Expression Builder dialog box, use one of the following statements: | <li>In the Expression text box of the Expression Builder dialog box, use one of the following statements: | ||
<div class="indent"> | <div class="indent"> | ||
Line 66: | Line 66: | ||
-or-<br /> | -or-<br /> | ||
<br /> | <br /> | ||
<variable_name></p> | |||
</div></li></ol> | </div></li></ol> |
Revision as of 14:45, 20 July 2020
Article ID: 105599
Article Last Modified on 10/15/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft FoxPro 2.0
This article was previously published under Q105599
SUMMARY
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.
Examples
To 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 Method
This method brings up records that contain the search string in any field.
- Select "<expression...>" from the Field Name list box.
- In the Expression text box of the Expression Builder dialog box, use one of the following statements:
'Stringtobefound'
-or-
<variable_name>
Additional query words: FoxDos VFoxWin FoxWin 2.50 2.50a 2.50b 2.60 2.60a wild card wildcard
Keywords: KB105599