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
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 |
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 |
Write a program to create a Dynamic array of size 5 elements and display all the elements.
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
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.
Can automation testing find ssame no. of bugs what we can find by manual testing?
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..
Why is error handling required?
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.
What is the difference between do until loop and do while loop?
how to declare a variable in vbscript using vbscript
Explain the constants in vbscript?
Explain the adodb.stream class?
Write a VB Script to count blank Lines in a notepad