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

Can anyone send me a vb script function for verifying the functionality of active links on a web page

2011


What is the use of option explicit statement?

980


How will you get the exponent of the given number in vbscript?

1010


How to make sure that items in a wintree are sorted al?

2842


How to take whole text output from screen of Bitmap Application.

2359


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1913


How will you check that a variable is an array in vbscript?

1000


Is VB Script Case sensitive or Case insensitive?

1094


what is the difference between modular and data and keyword driven framework

2252


Difference between dim,public and private variables in vb script?

944


How to open excel in vb script?

1011


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3746


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3435


What are class properties?

1163


Explain the adodb.stream class?

1002