StrReverse() returns a new string with the character order reversed.
my_string=StrReverse(my_string)
Dim my_string
my_string="Welcome to Plus2net.com"
Response.Write "Before String Reverse = " & my_string
my_string=StrReverse(my_string)
Response.Write "<br>After String Reversal = " & my_string
Before String Reverse = Welcome to Plus2net.com
After String Reversal = moc.ten2sulP ot emocleW
A zero-length string remains a zero-length string. A Null expression raises an error, so validate nullable data before reversing it.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.