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
wt is the use of multiple questions in QTP
What is throw Object?
How to remove the associated function library?
what type of automation is follwed in the project?
Define virtual object?
What are the types of environment variables in qtp?
How to test fly out menu in qtp?
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
What is the difference between the design-time and run-time data tables?
What is the pros and cons between QTP and Rational Robot
how to idetfy which test cases are automated?who will deside that plz tell me
What is qtpro? What is a quick test professional?
Hi All, I need code for how to execute qtp scripts from excell sheet
what are the mandatory properties for a tex boxc (scenario?)