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

Answer Posted / arpita

n=123
Do While n>0
i=n mod 10
vstr=vstr&i
n=n\10

Loop
msgbox vstr

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

who will create the object?

1901


what is used of Property........End Property loop ? how to write the script for it?

1926


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

2617


Is vbscript a case-sensitive or case-insensitive?

977


Which date function is used in the vbscript language to find the difference between the 2 dates?

791


what is the object hyrarchy in QTP for a web based application

2088


How are arrays declared in the vbscript language?

750


What are the valid scopes of a variable in vbscript?

789


filter the array values without using filter function?

1866


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2245


Explain the asc function?

671


How to pass argument by reference to a function in vbscript?

743


How to write VB script for login module?

2856


What are the differences between sub procedures and function procedures?

717


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

793