Skip to main content
Skip table of contents

padRight() Operation

Syntax
NONE
set aChangedString = aString.padRight(character, length)
set aChangedString = padRight(LITERAL, character, length)
SemanticsThe string is padded to the length by adding the character on the right (end) of the string. If the string is already of the required size or larger, the string is returned unchanged.
SubstitutablesaString Can be any variable or object attribute having the type String.  
character A single character.
length Length of final string in characters.
LITERAL String literal.
Examples
NONE
 set changedString = stringSet.s1.padRight("0", 10);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.