rightpad()
Table of Contents
Overview
The rightpad() function takes text and whitespaces as arguments. It returns the string, right-padded with white spaces equal to the specified number.
Return Type
- Text
Syntax
(OR)
Parameter | Data type | Description |
---|---|---|
<variable> | TEXT | Variable which will contain the returned text. |
<text> | TEXT | The text which will be right-padded with white spaces. |
<whitespaces> | NUMBER | Total number of whitespaces that need to be padded. Note: A negative value will return the string without any changes. Maximum value: 100,00 |
Examples
newText = text.rightpad(6); //returns "Right "