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

Explain the extension .hta?

540


why do u choose to go for testing why cant for devoloping

1586


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

566


Illustrate briefly about the different types of statement

2023


How are arrays declared in the vbscript language?

537






how to acces the remote mechine using vb cript(QTP)

1603


How can you fetch the value of a cookie?

548


Description.Create

2160


How strcomp function works?

624


What are events in the vbscript language?

544


How do you declare a variable in vbscript?

623


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

532


Explain the scope of the variables using dim, public, and private keywords respectively.

715


did any one attended interview in applabs if you had gone through plz tell me the procedure

1852


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1442