write vb script code to delete the duplicate values in an
array.
Answer Posted / saket bharti
aList=Array(5,5,5,5,12,10,15,10,125,5,1,1,2,3,4,5,6,7,8,8,8,8,8,8,8)
ReDim newArray(UBound(aList))
count=1
newArray(0)=aList(0)
for i=0 to UBound(aList)
temp=aList(i)
flag=0
for j=0 to UBound(newArray)
if ( newArray(j)=temp) Then
flag=1
End if
Next
if flag=0 then
newArray(count)=temp
count=count+1
End If
Next
ReDim Preserve newArray(count)
for j=0 to UBound(newArray)-1
msgbox newArray(j)
Next
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is recovery scenario manager? When you go for recovery scenario manager?
What is the architecture of your project? Can any one answer for this question plz........
What is a data driven test in qtp?
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
What are the different kinds of test steps?
Tell me one scenario, the complex functionality you have automated in your project?
How do Parameterization and Data-Driving relate to each other in QTP?
In what occasion we can specify global sheet and action sheet?
what could go wrong with test automation?
How many ways we can parameterize data in quicktest professional?
banking project description for software tester
How to test the login page in different ways in automation testing and i need code?
when a test case is written how u test using qtp
How to use parameterization in qtp?