Reverse (String function)

From m204wiki
Revision as of 15:48, 20 January 2011 by Wiccan (talk | contribs) (1 revision)
Jump to navigation Jump to search

Return string characters in right-to-left order (String class)


This intrinsic function returns the characters in the method object string in right-to-left order.

The Reverse function is available as of version 7.3 of the Sirius Mods.

Syntax

%outString = string:Reverse

Syntax terms

%outStr
A string or Longstring to receive the re-ordered characters from the input string.
string
The input string or Longstring.

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

See also

List of intrinsic String methods