Could Anybody tell me the Script for REVERSE an Interger
int reverse(int num) Ex:246 to 642.. Thanks in Advance.

Answers were Sorted based on User's Feedback



Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Than..

Answer / mudaseer

msgbox strreverse("246")

Is This Answer Correct ?    2 Yes 1 No

Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Than..

Answer / rajani_kanth

x=246
y=len(x)
For i=y to 1 step-1
c=mid(x,i,1)
d=d&c
Next
msgbox d

Is This Answer Correct ?    0 Yes 0 No

Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Than..

Answer / vineet sharma

convert int to string first using cstr() function. then use strreverse() function to reverse the string and then use cint to conver back the string to integer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

What are the special sub-types in vbscript?

0 Answers  


When does ‘on click of button’ event gets triggered in the vbscript language?

0 Answers  


What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?

0 Answers  


What are the uses of vb script?

0 Answers  


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

0 Answers  






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

0 Answers   Ford,


How will you reverse a string in vbscript?

0 Answers  


How can I get the value of an object property or variable in another frame?

1 Answers   Citi Bank,


How to find a latest file from any folder

3 Answers   Ness Technologies,


How to create a cookie using vbscript?

0 Answers  


Explain sga memory structures?

0 Answers  


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

2 Answers  


Categories