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

Write a program to create a Dynamic array of size 5 elements and display all the elements.

1 Answers  


i have developed the below QTP script to count the no of items available in the web list "Select a product" in www.bankrate.com and also want to print what are the items??? can any one help me to rectify the below script??? SystemUtil.Run "iexplore.exe","www.bankrate.com" a=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetTOProperty("items count") msgbox a Dim List() ReDim List(a-1) For i = 1 To a List(i-1)=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page ("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetItem(i) Print List(i-1) Next

1 Answers  


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

0 Answers  


Can automation testing find ssame no. of bugs what we can find by manual testing?

0 Answers  


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

0 Answers  






Why is error handling required?

0 Answers  


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

0 Answers  


What is the difference between do until loop and do while loop?

0 Answers  


how to declare a variable in vbscript using vbscript

4 Answers  


Explain the constants in vbscript?

0 Answers  


Explain the adodb.stream class?

0 Answers  


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,


Categories