StrReverse Function
This documentation is archived and is not being maintained.

StrReverse Function (Visual Basic)

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

Public Function StrReverse(ByVal Expression As String) As String

Expression

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

The StrReverse function returns a string that contains the same characters as Expression, but in the opposite order.

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

Namespace: Microsoft.VisualBasic

Module: Strings

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

Show:
© 2016 Microsoft