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()