RPad()
Summary
Pads a string with spaces to the right.
Syntax
padded_string = RPad(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 RPad() returns the last target_length characters of input_string.
See Also
| Function | Summary |
|---|---|
| LPad() | Pads a string with spaces to the left |