Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>wordonly()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson