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
How to replace junk code recorded by QTP with a mall function.
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?
What are lbound and ubound in the vbscript language?
What are the special sub-types in vbscript?
What is dictionary object in vbscript? Explain?
How will you get the exponent of the given number in vbscript?
How many types of operators are available in the vbscript language?
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
how to operate webobjects in a webpage using getobject function and then using generic methods?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
Which keyword is used to declare a variable in the vbscript language?
Explain the functionality of vbscript?
Mention what is the technology used by vb script?
Does VB/Win make standalone .EXE files?
What are class variables?