Can anybody code this problem for me in VB script -
Create an array of 4 elements, increase its size to 7
elements and then find out which of the elements are prime
(use functions)
Answers were Sorted based on User's Feedback
Answer / sadashivbyagi
we should use the dynamic array to resize the array then we
can change the size of the array
Is This Answer Correct ? | 2 Yes | 0 No |
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
what is the use of Data base check point ?
write a vb script to find simple interest using functions
How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)
How to search word in a string without using instring function?
How to replace junk code recorded by QTP with a mall function.
write a script to count no drives in file systems in qtp?
Hi I am having one folder with set of text files now i want to read and write that text files data into QTP. Any help plsss.
write a Vb script to find a whther a selected drive exits.
What are the differences between sub procedures and function procedures?
how to declare a variable in vbscript using vbscript
I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent