SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Reversing a String by StrReverse function in ASP

We can reverse a string by using ASP built in function StrReverse(). This function takes a string and print the output from reverse side of the string. Here is the syntax of the function.


my_string=StrReverse(my_string)



Here my_string is the string variable


Here is the simple code for string reversal.




Dim my_string
my_string="Welcome to Plus2net.com"
Response.Write "Before String Reverse = " & my_string
my_string=StrReverse(my_string)
Response.Write "
After String Reversal = " & my_string


The output of the above code is here

Before String Reverse = Welcome to Plus2net.com
After String Reversal = moc.ten2sulP ot emocleW


Further readings
Adding two or more strings in ASP
Getting the size or length of the string by using len() function
Removing blank space before and after a string using trim function
Changing lower to upper or upper to lower case of text present inside a string
Reversing a string variable by using StrReverse function
Compare two strings in different ways by using StrComp function
Collecting parts from Left , right and middle areas of a string
Checking matching of a string inside another string using InStr function
Searching and replacing strings inside another string using Replace function
Creating arrays by splitting string using split() function
Joining elements of an array to create a string variable
 
Scripts
PHP
JavaScript
All ASP Tutorials
Popular Tutorials
Managing two drop downs
ASP Tutorials
Date and time
Declaring array
Form in ASP
Server.MapPath
Date Time & MSSQL
Select Query
File System Object
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.