Reverse (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (printtext)
m (printtext)
Line 14: Line 14:


==Usage notes==
==Usage notes==
<ul><li>The <var>Reverse</var> function is available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.3.</ul>
<ul><li>The <var>Reverse</var> function is available as of <var class="product">[[Sirius Mods|Sirius Mods]]</var> Version 7.3.</ul>


==Examples==
==Examples==

Revision as of 17:46, 4 May 2011

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

  1. 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

See also