Could Anybody tell me the VBscript for
REVERSE an Integer int reverse(int num) Ex:246 to 642

Answer Posted / anil

Dim x,y,n
x=246
n=len(x)
for i=1 to n
y=mid(x,i,1)+y
next
msgbox y

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between sub procedures and function procedures?

528


There are 5 web pages.write a script to click the button on 4th web page.

2953


Which command is used for writing text on a page?

583


Which operator can be used to check if two numbers are equal or not in vbscript?

660


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1421






What is the technology used by vb script?

548


filter the array values without using filter function?

1666


How will you convert a given number to long in vbscript?

498


How will you reverse a string in vbscript?

626


What is the main difference between function and sub-procedure?

558


Is vbscript a case-sensitive or case-insensitive?

762


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

584


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

1800


How will you convert a string to upper case string using vbscript?

567


Which operator can be used to do an xor operation in vbscript?

689