Could Anybody tell me the Script for REVERSE an Interger
int reverse(int num) Ex:246 to 642.. Thanks in Advance.

Answer Posted / rajani_kanth

x=246
y=len(x)
For i=y to 1 step-1
c=mid(x,i,1)
d=d&c
Next
msgbox d

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1555


What is the use of the instr function?

591


Is VB Script Case sensitive or Case insensitive?

642


What is byref and byval parameters in vbscript?

611


What are the different types of operators and their order of precedence?

576






What is dictionary object in vbscript? Explain?

632


Difference between dim,public and private variables in vb script?

533


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1568


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

584


Mention the rules for using option explicit statement?

487


What are the advantages of vbscript?

650


What are class properties?

659


How to create a cookie using vbscript?

597


Explain about the support of asp for vb script functionality?

534


Which operator is used to perform the comparison among 2 operands in the vbscript language?

534