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

Answer Posted / kiran

dim number
number = inputbox("enter any number")
strlen = len(number)
for i = 1 to strlen
revnumber = mid(number,i,1) + revnumber
next
msgbox revnumber

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to replace junk code recorded by QTP with a mall function.

1646


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

526


What are lbound and ubound in the vbscript language?

609


What are the special sub-types in vbscript?

554


What is dictionary object in vbscript? Explain?

628






How will you get the exponent of the given number in vbscript?

561


How many types of operators are available in the vbscript language?

538


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1800


how to operate webobjects in a webpage using getobject function and then using generic methods?

2543


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2396


Which keyword is used to declare a variable in the vbscript language?

531


Explain the functionality of vbscript?

538


Mention what is the technology used by vb script?

523


Does VB/Win make standalone .EXE files?

2903


What are class variables?

619