Advantage Concepts
Advantage Expression Engine function that pads character, date, and numeric values with a fill character
PADR(<exp>, <nLength>, [<cFillChar>]) à cPaddedString
<exp> |
A character, numeric, or date value to be padded with a fill character. |
<nLength> |
The length of the character string to be returned. |
<cFillChar> |
The character with which to pad <exp>. If not specified, the default is a space character. |
PADR() returns the result of <exp> as a character string padded with <cFillChar> to a total length of <nLength>.
PADR() is a character function that pads character, date, and numeric values with a fill character to create a new character string of a specified length. PADR() adds fill characters on the right side. If the length of <exp> exceeds <nLength>, all of the PAD() functions truncate cPaddedString to <nLength>.
PADR() is the inverse of the ALLTRIM(), RTRIM(), and LTRIM() functions which trim leading and trailing space from character strings.
Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.
Note Memo, binary, and image fields are not supported in this Advantage Expression Engine function. If memo, binary, or image fields are used with this expression engine function, the Advantage Expression Engine will be unable to evaluate the expression.