LPad()

Summary

Pads a string with spaces to the left.

Syntax

padded_string = LPad(string input_string, integer target_length)

Argument Contents
input_string Any string
target_length The desired length of the output string

Returns

A string of length target_length.

Notes

  • If target_length is less than or equal to the length of input_string, then LPad() returns the first target_length characters of input_string.

See Also

Function Summary
RPad() Pads a string with spaces to the right