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
Mention how to create a cookie using vbscript?
There are 5 web pages.write a script to click the button on 4th web page.
How to Enter Values on the Command promt using VB script
What are the different types of loops available in the vbscript language?
Is vbscript language a case-sensitive language and what does it mean?
How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.
Explain about adodb.stream class?
who will create the object?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
how to write validation function for date in vb script
Which object provide information about a single runtime error in a vbscript?
What are the valid scopes of a variable in vbscript?
What if you do not specify anything when you call a procedure?
How to assign a numeric value to a variable?
about vb scripting programs this type of all question& answers