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

How do i automate a website www.flyashx.com without having any test cases witin a week time.

0 Answers   Zensar,


how to genarate a random numbers in vb?

2 Answers  


If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....

3 Answers  


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

0 Answers   Microsoft,


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

0 Answers  






give me an ex. of unoverloaded method?

2 Answers   Misys,


What are the rules to name variable in vbscript?

0 Answers  


In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.

2 Answers  


How to delete a cookie using vbscript?

0 Answers  


How do you get the value of a combo box in Javascript?

2 Answers   Aspire,


Which is the default Data types in VBScript?

7 Answers   AppLabs,


Explain about the functionality of vb script?

0 Answers  


Categories