StrReverse
Returns a string in which the character order of a specified string is reversed.
Syntax: StrReverse( expression )
- expression
- required The string whose characters are to be reversed. If expression is a zero-length string (
""), a zero-length string is returned.
Common Errors
| Error | When |
|---|---|
94 (&H5E), Invalid use of Null | expression is Null |
Example
This example uses StrReverse to reverse the character order of a string.
Debug.Print StrReverse("hello") ' "olleh"
Debug.Print StrReverse("racecar") ' "racecar"
Debug.Print StrReverse("AB") ' "BA"