$PadR: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
m (misc formatting)
Line 1: Line 1:
<p>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. For example:</p>
<p>
The <var>$PadR</var> function allows padding to the right with a designated character. <var>$PadR</var> works exactly like <var>[[$Pad]]</var>, with the exception that <var>$Pad</var> pads to the left while <var>$PadR</var> pads to the right. </p>
 
<p class="note"><b>Note:</b> Many $functions have been superseded by [[Object oriented programming in SOUL|SOUL OO]] methods. The [[Left (String function)]] provides a right-padding feature similar to <var>$PadR</var>. </p>
 
==Example==
<p class="code">$PADR('123.65','*',9) equals '123.65***'
<p class="code">$PADR('123.65','*',9) equals '123.65***'
</p>
<p>Many $functions have been superceded by OO methods. The [[Left (String function)]] provides a right-padding feature similar to $padr.
</p>
</p>


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

Revision as of 18:59, 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***'