Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1449


How to add actions in driver script to run those actions in QTP?

1916


What are class properties?

1132


Compare java script and vb script?

1048


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

14097


Explain the .wsf files?

938


How will you convert a string to lower case string using vbscript?

993


what is used of Property........End Property loop ? how to write the script for it?

2211


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1335


write a program to display configuration of a local system with the help of vb script.

2081


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3423


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

970


how to acces the remote mechine using vb cript(QTP)

2000


Explain few date functions in vbscript?

1015


Mention how to access array data?

936