Export (0) Print
Expand All

StrReverse Function

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

Public Function StrReverse(ByVal Expression As String) As String

Parameters

Expression
Required. String expression whose characters are to be reversed. If Expression is a zero-length string (""), a zero-length string is returned.

Example

Dim myString As String = "ABCDEFG"
Dim revString As String
' Returns "GFEDCBA"
revString = StrReverse(myString)

Requirements

Namespace: Microsoft.VisualBasic

Module: Strings

Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)

See Also

InStrRev Function

Show:
© 2015 Microsoft