Chapter 59. PAD
Implements the SBL-compatible PAD() function, and adds the LPAD function for left padding.
LPAD()
Description
This function inserts space characters to the left of the string
value passed until it is the length passed in the
iLength
. If the length of the text passed in
s
is longer than the value passed in
iLength
, then the text will be truncated from the
right to the desired length. The result is returned to the calling
function.
Prototype
LPAD
(
string
,
integer s
)
iLength
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
s | None | string | |
iLength | None | integer |