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

Syntax:     CHAREVEN(<expC>)

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

Returns:    A character string.
            A string with all the characters that were located in even
            positions in <expC>.

Usage:      This function can be used to pull out all the even characters
            in a string into a new string.  It will therefore be possible to
            process a variable in which the contents of a screen is
            stored, consisting of characters and attribute bytes.  It is then
            possible to use this function in conjunction with functions
            from the video module, and then to save the attributes from
            a screen string with all the characters removed.

Notes:      The first position of a string is 1 and is therefore considered
            as odd.

Library:    CT1.LIB


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

Examples:   * All characters on even positions
            ? CHAREVEN("1234a")                 && "24"

            * Blocked characters will return to normal.
            ? CHAREVEN(" h e l l o")            && "hello"



See Also: CHARODD() SCREENSTR() STRSCREEN()

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