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

Syntax:     PADLEFT(<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:      PADLEFT() can be used to pad the start of a string in
            accordance with a new length specification.  Spaces or any
            character to be specified will be used for filling.

Notes:      If <expN> is specified shorter than the length of <expC1>,
            then the function will operate like the Clipper function
            RIGHT().  PADLEFT() will return a null string if <expN> is
            negative.  The function will default to using spaces as the
            pad characters in the absence of the <expC2> argument.

Library:    CT1.LIB


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

Examples:   * The function operates like RIGHT().
            ? PADLEFT("123456",4)                       && "3456"

            * The left is filled with spaces.
            ? PADLEFT("123456",8)                       && "     123456"

            * The left is filled with the "." character.
            ? PADLEFT("123456",8,".")                   && "..123456"



See Also: PADRIGHT()

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