Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>charand()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CHARAND()

Syntax:     CHARAND([@],<expC1>,<expC2>)

Arguments:  <expC1> denotes the string to be processed.
            <expC2> is the string to AND with <expC1>.

Returns:    A character string.
            The processed <expC1> character string.

Usage:      CHARAND() can, for example, be used to reset the high bit
            of all the characters of a string.  The function joins (linking
            by AND) bit by bit, each character in <expC1> with the
            corresponding character in the <expC2> string.

Notes:      If the two strings have the same length, then the first byte of
            <expC1> will be joined to the first byte of <expC2>, the
            second byte of <expC1> with the second byte of <expC2>,
            etc.  If the <expC2> argument is shorter than <expC1>, then
            when the last byte of <expC2> is reached, the continuation
            will start at the first byte of <expC2>.  However, if
            <expC1> is shorter than <expC2> the process will stop at
            the end of <expC1>.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * As the second argument is shorter than
            * the first, then the "1","a" and the
            * first space will be the AND'd to the first "1" from
            * "123" the "2","b" and the second space
            * with the "2" from the "123" and the "3","c"
            * and the third space with the "3" from "123".

            ? CHARAND("123abc     ","123")      && "123!#     "



See Also: CHARNOT() CHAROR() CHARXOR()

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