Function String Manipulations Class

ReverseString

Reverse the characters within a string. "ABCDEF" becomes "FEDCBA", etc.

Signature (Visual Basic / VBA)

Public Function ReverseString( _
    ByVal vValue As Variant _
    ) As Variant

Code Example

    ReverseString("ABC", 1) = "CBA"

Parameters

Parameter Description
vValue The string whose characters are to be reversed. Function returns Null if vValue is Null or cannot be fixed up to a String.

Notes & Version History

v1.5 Note The StrReverse function in Visual Basic 6.0 is similar to this function, except that Visual Basic's StrReverse function does not allow a Null argument.