[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|        PADC, PADL, PADR         |
+---------------------------------+
PADL(<expr>, <expN> [, <expC>])

PADR(<expr>, <expN> [, <expC>])

PADC(<expr>, <expN> [, <expC>])

-----------------------------------
Pads an expression.
Return value - Character.
-----------------------------------

These functions return, as a character string, a given expression padded
to the length <expN>.  You may include a character expression to pad the
given expression.

PADL() inserts padding on the left, PADR() inserts padding on the right
and PADC() inserts padding on both sides.

<expr>
        Include the expression <expr> to be padded.  This expression may be a
character, numeric or date expression.

<expN>
        <expN> specifies the total length of the expression after it is padded.

<expC>
        <expC> is used for padding.  If <expC> is omitted, spaces (ASC(32)) are
used for padding.  If <expC> is included, <expC> is repeated as
necessary to pad the expression <expr> to a length of <expN> characters.


+---------------------------------+
|             Examples            |
+---------------------------------+
STORE 'TITLE' TO string
? PADL(string, 40, '=')

? PADR(string, 40, '=')

? PADC(string, 40, '=')

-----------------------------------

See Also:  ALLTRIM(), LEFT(), LTRIM(), RIGHT(), STUFF(), TRIM()

-----------------------------------

See Also: ALLTRIM() LEFT() LTRIM() RIGHT() STUFF() TRIM()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson