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
Why is Client side image is preferred over server side image?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is TOM in QTP?
what is command for executing files?
Difference between test object and run time object?
How do you open adobe acrobat file in QTP and do some testing on that file ?
what are the utilities and drivers
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
what are the mandatory properties for a tex boxc (scenario?)
In qtp, how you can remove the spaces from string?
what is keyword driven testing in qtp?n how is it useful?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
How you know that a test case is a regression test case