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

Answer Posted / manish

a = inputbox("enter a string or no.")
b = len(a)
For i = 1 to b
c = mid(a,b,1)
d = d & "" & c
b = b -1
Next
msgbox d

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why to use option explicit in vb script?

757


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

741


Mention characteristics of sub procedures?

751


What is vbscript language used for and which earlier language is it modeled upon?

693


What is the main difference between function and sub-procedure?

702






If else for do while select in vb script?

794


How can constants be declared in the vbscript language?

705


can anyone tell me the procedure of interview held in applabs

1898


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2667


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

694


What's the difference between vbscript and vb.net?

688


Why is error handling required?

712


What is the output of a + b in vbscript if a = 5 and b = 10?

2686


How will you get the smallest subscript of an array in vbscript?

1030


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

2056