CT_WORDONLY

 WORDONLY()
 Finds the common denominator between two strings on the basis of double
 characters
------------------------------------------------------------------------------
 Syntax

     WORDONLY(<cDoubleCharacter>,<cString>) --> cString

 Arguments

     <cDoubleCharacter>  Designates the 2-byte sequences that are not
     removed from <cString>.

     <cString>  Designates a character string from which 2-byte sequences
     that do not appear in <cDoubleCharacter> are removed.

 Returns

     WORDONLY() returns the modified string.

 Description

     This function deletes all 2-byte sequences in <cString> that do not
     appear in <cDoubleCharacter>.  This function is very useful in
     applications where 16-bit integer values have been saved to strings
     using the CA-Clipper I2BIN() function.

 Note

     .  The function always processes strings in ordered pairs.

 Examples

     .  This example shows a simple common denominator.  The second
        string contains only the 2-byte sequences that are also contained in
        the first string:

        ? WORDONLY("AABBCCDD", "XXAAYYBBZZ")            // "AABB"

     .  Both strings are always processed in ordered pairs:

        ? WORDONLY("AABBCCDD", "XAAYYBBZZ")             // "BB"

See Also: CHARONLY()



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.