How to add spaces to the right of a text

4WS.Platform provides a method to apply the right padding to a string:

rightPad(str, len);

this function will return the new text with spaces to the right of the text;

Example

rightPad("X", 3)

will return “X “

Last updated