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

Mention how to create a cookie using vbscript?

1007


There are 5 web pages.write a script to click the button on 4th web page.

3416


How to Enter Values on the Command promt using VB script

2060


What are the different types of loops available in the vbscript language?

986


Is vbscript language a case-sensitive language and what does it mean?

1021


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

2145


Explain about adodb.stream class?

1128


who will create the object?

1966


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2976


how to write validation function for date in vb script

2626


Which object provide information about a single runtime error in a vbscript?

1068


What are the valid scopes of a variable in vbscript?

1100


What if you do not specify anything when you call a procedure?

1134


How to assign a numeric value to a variable?

1125


about vb scripting programs this type of all question& answers

2138