Caché Basic Reference
StrReverse
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Returns a string in which the character order of a specified string is reversed.
Synopsis
StrReverse(string1)
Arguments
The string1 argument is the string whose characters are to be reversed. If string1 is a zero-length string (""), a zero-length string is returned.
Examples
The following example uses the StrReverse function to return a string in reverse order:
Dim RevStr
RevStr = StrReverse("Caché") ' RevStr contains "éhcaC"
Println "backwards: ",RevStr
Println "forewards: ",StrReverse(RevStr)