Thursday, January 12, 2012

Reverse the string using vb script Function

for Technical interviews:

http://no1tutorial.com/

learn step by step technologies:


http://no1tutorial.com/


str,strrev,ch,i,l
str = inputbox(“enter string”)
l = Len(str)
For i = l To 1 Step -1
ch = Mid(str,i,1)
strrev = strrev & ch
Next
msgbox strrev

No comments:

Post a Comment