$PadR: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (misc formatting)
m (use lowercase)
 
Line 5: Line 5:


==Example==
==Example==
<p class="code">$PADR('123.65','*',9) equals '123.65***'
<p class="code">$padr('123.65','*',9) equals '123.65***'
</p>
</p>


[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Latest revision as of 19:09, 7 October 2016

The $PadR function allows padding to the right with a designated character. $PadR works exactly like $Pad, with the exception that $Pad pads to the left while $PadR pads to the right.

Note: Many $functions have been superseded by SOUL OO methods. The Left (String function) provides a right-padding feature similar to $PadR.

Example

$padr('123.65','*',9) equals '123.65***'