SIMPOL Documentation

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 s, integer iLength )

Parameters

ParameterDefault valueType nameDescription
sNonestring
iLengthNoneinteger