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
Can anyone send me a vb script function for verifying the functionality of active links on a web page
What is the use of option explicit statement?
How will you get the exponent of the given number in vbscript?
How to make sure that items in a wintree are sorted al?
How to take whole text output from screen of Bitmap Application.
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
How will you check that a variable is an array in vbscript?
Is VB Script Case sensitive or Case insensitive?
what is the difference between modular and data and keyword driven framework
Difference between dim,public and private variables in vb script?
How to open excel in vb script?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
What are class properties?
Explain the adodb.stream class?