StrReverse Function

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

Syntax

StrReverse(string1)

Remarks

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:

Example 1:

Dim MyStr
MyStr = StrReverse("BSL") 
'Output: "LSB"

Example 2:

Dim MyStr1
MyStr1 = StrReverse("Hello World")   
' Output: "dlroW olleH"

Example 3:

Dim MyStr2
MyStr2 = StrReverse("")   
' Output: ("")