HEELPBOOK - How to reverse a string using VBScript ################### str="uday" For i=len(str) to 1 step -1 strchar=mid(str,i,1) resultstr=resultstr&strchar Next msgbox resultstr ...or you can use the built-in function in VBScript: msgbox strreverse("uday") ########### Alternate Method Here is how we can Reverse a String without using any functions like len & mid: Option Explicit Dim yourstr,r,letter,result,s yourstr="program" Set r=new regexp r.pattern="[a-z A-Z]" r.global=true set s=r.execute(yourstr) For each letter in s result= letter.value&result Next msgbox(result) ############ ARTICLE INFO ############# Article Month: February Article Date: 18/02/2013 Permalink: http://heelpbook.altervista.org/2013/how-to-reverse-a-string-using-vbscript/ Source: http://hpsqtp.blogspot.it/2010/05/how-to-reverse-string-using-vbscript_11.html Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook Follow us on Delicious: http://delicious.com/heelpbook Linkedin: http://it.linkedin.com/pub/stefano-maggi/27/73a/b20 Google+ : https://plus.google.com/116990277568167008289/posts