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

can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)

3 Answers   Bally Technologies,


How to remove the spaces in a string Ex: "Welcome to QTPWorld" ?

10 Answers   Cap Gemini, CTS,


why do u choose to go for testing why cant for devoloping

0 Answers  


What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


write a vb script to generate hello 5 times using do until loop

4 Answers  






What is dictionary object in vbscript? Explain?

0 Answers  


What is the use of the instr function?

0 Answers  


what is the use of Data base check point ?

3 Answers  


How will you get a combined string from array of string in vbscript?

0 Answers  


How can you test font size, type and color using QTP tool?

3 Answers  


How to get path of the file through scripting?

1 Answers   Hexaware,


What are the disadvantages of vbscript?

0 Answers  


Categories