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

What is the use of option explicit in vbscript?

546


how to operate webobjects in a webpage using getobject function and then using generic methods?

2546


Description.Create

2162


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 ?

1564


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

1863






what types of bugs will we find out in banking projects for automation testing?

1768


What are subprocedures in vbscript?

666


How will you compare two strings in vbscript?

598


How to Enter Values on the Command promt using VB script

1534


Explain about constants in vb script?

577


How to throw an error in vbscript?

610


Illustrate briefly about the different types of statement

2027


about vb scripting programs this type of all question& answers

1697


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1523


How will you get the last occurrence of one string within another string using vbscript?

691