Substring comparison

 $
 Substring comparison--binary                    (Relational)
------------------------------------------------------------------------------
 Syntax

     <cString1> $ <cString2>

 Type

     Character, memo

 Operands

     <cString1> is a character or memo value that is searched for in
     <cString2>.

     <cString2> is a character or memo value within which <cString1> is
     sought.

 Description

     The $ operator is a binary relational operator that performs a case-
     sensitive substring search and returns true (.T.) if <cString1> is found
     within <cString2>.

 Examples

     .  This example illustrates the case-sensitivity of the substring
        operator ($):

        ? "A" $ "ABC"            // Result: .T.
        ? "a" $ "ABC"            // Result: .F.

See Also: < <= <> = (equality) == > >=

One response to “Substring comparison

  1. Pingback: CL_Operators | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.