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
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
How to add actions in driver script to run those actions in QTP?
What are class properties?
Compare java script and vb script?
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Explain the .wsf files?
How will you convert a string to lower case string using vbscript?
what is used of Property........End Property loop ? how to write the script for it?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
write a program to display configuration of a local system with the help of vb script.
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
how to acces the remote mechine using vb cript(QTP)
Explain few date functions in vbscript?
Mention how to access array data?