Returns true (.T.) if a character expression is contained in another character expression; otherwise, returns false (.F.).
Syntax
cSearchFor $ cSearchIn
Returns
Logical
Arguments
cSearchFor
Specifies the expression looked for within cSearchIn.
cSearchIn
Specifies the expression that is searched to see if it contains cSearchFor.
If cSearchFor is found in cSearchIn, $ returns true (.T.); otherwise, it returns false (.F.). cSearchFor and cSearchIn can be character-type variables or array elements, character-type fields, character string literals, or memo fields of any length.
Memo fields can be manipulated like character expressions, fields in tables, variables, or array elements. For example, if MEMO_FLD is a memo field, the following is acceptable:
LIST FOR 'FOX' $ UPPER(memo_fld)
Remarks
If the character expression isn't found, false (.F.) is returned. The $ operator is case-sensitive and is not Rushmore optimizable.