Strings.StrReverse(String) Metoda

Definice

Vrátí řetězec, ve kterém je obráceno pořadí znaků zadaného řetězce.Returns a string in which the character order of a specified string is reversed.

public:
 static System::String ^ StrReverse(System::String ^ Expression);
public static string StrReverse (string? Expression);
public static string StrReverse (string Expression);
static member StrReverse : string -> string
Public Function StrReverse (Expression As String) As String

Parametry

Expression
String

Povinná hodnota.Required. Řetězcový výraz, jehož znaky mají být obráceny.String expression whose characters are to be reversed. Pokud Expression je řetězec nulové délky (""), vrátí se řetězec s nulovou délkou.If Expression is a zero-length string (""), a zero-length string is returned.

Návraty

String

Řetězec, ve kterém je obráceno pořadí znaků zadaného řetězce.A string in which the character order of a specified string is reversed.

Příklady

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

Poznámky

StrReverseFunkce vrátí řetězec, který obsahuje stejné znaky jako Expression , ale v opačném pořadí.The StrReverse function returns a string that contains the same characters as Expression, but in the opposite order.

Platí pro

Viz také