Pads a string with a given length, if the given string is longer than the length, the original string is returned.
Declaration
PADSTRING(base_string, pad_string, length, alignment) -> substring
PADSTRING(base_string, pad_string, length) -> substring
Parameters
- base_string (type: string)
- The base string to pad.
- pad_string (type: number)
- The string to use for padding.
- length (type: number)
- The maximum length of the resulting string.
- alignment (type: string)
- The direction to pad the string, RIGHT is the default.
Return Values
- substring (type: string)
- The resulting substring taken from the baseString starting at the start index and ending at the end index or the end of the baseString.
0
0
Was this article helpful?
0 out of 0 found this helpful
Add comment
Please sign in to leave a comment.