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
Explain about vb script?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
How will you reverse a string in vbscript?
Explain about operator precedence in vb script?
What is the output of a + b in vbscript if a = 5 and b = 10?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How strcomp function works?
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.
How many types of operators are available in the vbscript language?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
Which operator can be used to check if two numbers are equal or not in vbscript?
What is the event handling in vbscript?
Is VB Script Case sensitive or Case insensitive?