Reverse (String function): Difference between revisions
Jump to navigation
Jump to search
m (printtext) |
m (→Examples) |
||
(One intermediate revision by one other user not shown) | |||
Line 17: | Line 17: | ||
==Examples== | ==Examples== | ||
A <var>Reverse</var> method example follows: | |||
<p class="code">. . . | <p class="code">. . . | ||
%s is longstring | %s is longstring | ||
Line 26: | Line 26: | ||
will display: | will display: | ||
<p class="code">%s:reverse = Nl4? g E c A | <p class="code">%s:reverse = Nl4? g E c A | ||
</p | </p> | ||
==See also== | ==See also== | ||
{{Template:String:Reverse footer}} | {{Template:String:Reverse footer}} |
Latest revision as of 21:05, 5 November 2012
Return string characters in right-to-left order (String class)
The Reverse intrinsic function returns the characters in the method object string in right-to-left order.
Syntax
%outString = string:Reverse
Syntax terms
%outString | A string or to receive the re-ordered characters from the input method object string. |
---|---|
string | The input string to which the method is applied. |
Usage notes
- The Reverse function is available as of Sirius Mods Version 7.3.
Examples
A Reverse method example follows:
. . . %s is longstring %s = 'A c E g ?4lN' printText {~} = '{%s:reverse}' . . .
will display:
%s:reverse = Nl4? g E c A