Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Returns a string in which the character order of a specified string is reversed.




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.


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)
Copy code to clipboard
FeedbackOpens in a new window