Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

StrReverse

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)
FeedbackOpens in a new tab