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 we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
filter the array values without using filter function?
What are the advantages of vbscript?
Anyone have qtp11.0 crack?
What are the rules to name variable in vbscript?
how to operate webobjects in a webpage using getobject function and then using generic methods?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
How to delete a cookie using vbscript?
What are the disadvantages of vbscript?
Mention what is select case statement?
What is purpose of scripting.filesystemobject class in vbscript?
What are class properties?
Explain some uses of vb script?
How will you get the exponent of the given number in vbscript?
Explain the functionality of vbscript?