Reverse (String function): Difference between revisions
Jump to navigation
Jump to search
m (moved Intrinsic Reverse Function to Reverse (String function): rename) |
|||
Line 20: | Line 20: | ||
%s is longstring | %s is longstring | ||
%s = 'A c E g ?4lN' | %s = 'A c E g ?4lN' | ||
[[PrintText | [[PrintText statement|printText]] {~} = '{%s:reverse}' | ||
. . . | . . . | ||
will display: | will display: | ||
%s:reverse = Nl4? g E c A | %s:reverse = Nl4? g E c A | ||
===See also=== | ===See also=== | ||
[[List of Intrinsic String Methods]] | [[List of Intrinsic String Methods]] |
Revision as of 14:24, 11 October 2010
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.
Reverse syntax
%outStr = 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