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>charodd()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CHARODD()

Syntax:     CHARODD(<expC>)

Arguments:  <expC> denotes the string from which to return all odd
            characters.

Returns:    A character string.
            A string with all odd characters from <expC>.

Usage:      This function can be used to create a string containing only
            the odd characters from the string passed.  It is therefor
            possible to process variables in which a screen is "saved"
            consisting of characters and attributes.  This function can to
            used very efficiently in conjunction with functions from the
            video module.  It will return all the characters from a screen
            string with all attributes omitted.

Notes:      The first position in a string is 1 and is therefore odd.

Library:    CT1.LIB


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

Examples:   * All characters in uneven positions
            ? CHARODD("123aZ")                  && "13a"

            * Blocked type will return to normal.
            ? CHARODD("H e l l o ")             && "Hello"



See Also: CHAREVEN() SCREENSTR() STRSCREEN()

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