StrReverse Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE


The StrReverse function reverses a string. Returns a string in which the character order of a specified string is reversed. The string1 argument is the string whose characters are to be reversed. If string1 is a zero-length string (""), a zero-length string is returned. If string1 is Null, an error occurs. Returns a string in which the character order of a specified string is reversed.
The StrReverse function reverses the characters (including blanks) in a string.

It has One Mandatory Argument :-

  • String1 :- The string whose characters are to be reversed. If string1 is a zero-length string (""), a zero-length string is returned. If string1 is Null, an error occurs.

The Syntax of the StrReverse function is :-

StrReverse(string)

Example#1 :-

Code :-
dim txt
txt="This is a beautiful day!"
document.write(StrReverse(txt))
Output :-
!yad lufituaeb a si sihT

Example#2 :-

Code :-
dim txt
txt="abcde"
document.write(StrReverse(txt))
Output :-
"edcba"

Example#3 :-

Code :-
dim txt
txt="VBScript"
document.write(StrReverse(txt))
Output :-
"tpircSBV".

Example#4 :-

Code :-
dim txt
txt="abcde fghij klmno pqrst uvwxyz"
document.write(StrReverse(txt))
Output :-
zyxwvu tsrqp onmlk jihgf edcba

 


 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641