devxlogo

ReverseString – Reversing a String

ReverseString – Reversing a String

' Reverse the input string, without using the StrRever function in the VB6 ' compatibility assemblyFunction ReverseString(ByVal source As String) As String    Dim chars() As Char = source.ToCharArray()    Array.Reverse(chars)    Return New String(chars)End Function

devx-admin

Share the Post: