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

Syntax:     PADRIGHT(<expC1>,<expN>[,<expC2>])

Arguments:  <expC1> is the string to be processed.
            <expN> denotes the required new length of the <expC1>
            string.
            <expC2> is the character to use to pad the start of the
            <expC1> string.

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

Usage:      PADRIGHT() may be used to pad the end of a string in with
            characters ,in accordance with a new <expC1> length
            specification.  Either spaces or any character to be specified,
            will be used to pad the right side of the string.

Notes:      If <expN> is specified shorter than the length of <expC1>,
            then the function will operate like the Clipper function LEFT().
            PADRIGHT() will return a null string if <expN> is negative.
            In the absence of the <expC2> argument, the function will
            default to a space for the <expC2> character.

Library:    CT1.LIB


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

Examples:   * The function operates like LEFT().
            ? PADRIGHT("123456",4)                      && "1234"

            * The right will be filled with spaces.
            ? PADRIGHT("123456",4)                      && "123456    "

            * The right will be filled with
            * the "." character.
            ? PADRIGHT("123456",8,".")                  && "123456.."



See Also: PADLEFT()

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