Breadcrumbs

padRight() Operation

Syntax

set aChangedString = aString.padRight(character, length)
set aChangedString = padRight(LITERAL, character, length)

Semantics

The 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.

Substitutables

aString

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

 set changedString = s1.padRight("0", 10);
📗