PadRight
The PadRight() function adds a specified character to the end of a string until the string reaches a specified total length.
Related functions: PadLeft
Syntax:
PadRight(String, Length, PadChar)- In the Quintessence Editor (Studio) using Python language, use:
Qx.PadRight()
ⓘ See parameter descriptions
| String | The input text. |
| Length | The desired total length of the output string (in characters). |
| PadChar | The character to prepend to the string until the required length is reached. |
Remarks:
- If the input string is already longer than the specified final length, the original string is returned unchanged.
Examples:
The examples provided below are based on fictitious data for illustrative purposes only.
> Example 1: Add characters to the right of a string
Formula:
return := PadRight("ABC", 6, "0");Result:
| ABC000 |
