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

Answers were Sorted based on User's Feedback



Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / naga siva sankar

val=246
valstr=cstr(val)
msgbox strReverse(valstr)

Is This Answer Correct ?    11 Yes 5 No

Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / anil

Dim x,y,n
x=246
n=len(x)
for i=1 to n
y=mid(x,i,1)+y
next
msgbox y

Is This Answer Correct ?    8 Yes 3 No

Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / arpita

n=123
Do While n>0
i=n mod 10
vstr=vstr&i
n=n\10

Loop
msgbox vstr

Is This Answer Correct ?    5 Yes 1 No

Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / 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

Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / kiran

dim number
number = inputbox("enter any number")
strlen = len(number)
for i = 1 to strlen
revnumber = mid(number,i,1) + revnumber
next
msgbox revnumber

Is This Answer Correct ?    3 Yes 1 No

Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / manish

a = inputbox("enter a string or no.")
b = len(a)
For i = 1 to b
c = mid(a,b,1)
d = d & "" & c
b = b -1
Next
msgbox d

Is This Answer Correct ?    1 Yes 0 No

Could Anybody tell me the VBscript for REVERSE an Integer int reverse(int num) Ex:246 to 642..

Answer / lak

n=Inputbox("Enter Number Series to reverse")

for i=1 to len(n)
x=n mod 10
temp=temp&x
n=n/10
n=fix(n)
next

msgbox temp

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

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

3 Answers   TCS,


Both Static and dynamic arrays are handled by VB script. Is it true?

0 Answers  


wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me

2 Answers  


What is the difference between for loop and while loop?

0 Answers  


When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?

3 Answers   Logica CMG, McGraw Hill,


how to genarate a random numbers in vb?

2 Answers  


hey please tell me how to retriev data from excel sheet which puts the login name and password in the application? plz send me the code..please help me

6 Answers   HP,


What are the differences between sub procedures and function procedures?

0 Answers  


how to set one column as primary key in QTP and fetch values accordingly

0 Answers   Ford,


how to increase the values in text box in a given text box increament by two values by clicking on button

0 Answers  


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

0 Answers  


what is the standards used for writing the script in QTP

0 Answers  


Categories