Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Strings::StrReverse Method (String^)

 

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

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public:
static String^ StrReverse(
	String^ Expression
)

Parameters

Expression
Type: System::String^

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

Return Value

Type: System::String^

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

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)

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2017 Microsoft