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

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

Arguments:  <expC1> is the string to be processed.
            <expC2> is the character used to replace all <expC1> at the
            start of the <expC1> string.
            <expC3> is the character to be replaced by <expC2> at the
            start of <expC1>.

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

Usage:      REPLLEFT() can ,for example, be used to replace the
            leading spaces in a string by any other character.

Notes:      The function will assume spaces are to be replaced in the
            absence of the <expC3> argument.

Library:    CT1.LIB


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

Examples:   * Replacing leading spaces with blanks.
            ? REPLLEFT("  1234","0")                     && "001234"

            * Replacing leading blanks with spaces.
            ? REPLLEFT("001234"," ","0")                 && "    1234"

            * Only leading spaces are replaced.
            ? REPLLEFT("   1    ","0")                   && "001    "



See Also: REPLALL() REPLRIGHT()

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