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

Answer Posted / pankaj jaju

Function IntReverse(varNum)
Dim varTemp

If IsNumeric(varNum) = True Then
varTemp=0
While (varNum/10) > 0
varTemp = (varTemp*10) + (varNum Mod 10)
varNum = Int(varNum/10)
Wend
IntReverse = varTemp
Else
IntReverse = False
End If
End Function

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1574


There are 5 web pages.write a script to click the button on 4th web page.

2940


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1667


how to increase the values in text box in a given text box increament by two values by clicking on button

1648


How should i Create Email invite with server-side Coding?

1604






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

1691


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

1412


Explain the support of asp for vb script functionality?

637


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

554


Explain the functionality of vbscript?

538


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1810


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


Can anyone send me a vb script function for verifying the functionality of active links on a web page

1602


Is vbscript a case-sensitive or case-insensitive?

754


Mention what is select case statement?

548