Category:

Miscellaneous

Pads the right-side of a string with a specific set of characters.

Syntax

rpad(
  Str String,
  Count Numeric,
  Char String
): String

Parameters

Str is the string to pad characters to.

Count is the number of characters to return.

Char is the string that will be padded to the right-hand side of Str.

Return value

Type: String. Returns the resulting string.

Examples of using

rpad(dataset_field_val(1, 'ClientName'), 4, ' ')
rpad('7', 5, '_')