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
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.
There are 5 web pages.write a script to click the button on 4th web page.
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
how to increase the values in text box in a given text box increament by two values by clicking on button
How should i Create Email invite with server-side Coding?
what is used of Property........End Property loop ? how to write the script for it?
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)
Explain the support of asp for vb script functionality?
What is the main difference between function and sub-procedure?
Explain the functionality of vbscript?
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..
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 ?
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Is vbscript a case-sensitive or case-insensitive?
Mention what is select case statement?