write vb script code to delete the duplicate values in an
array.
Answer Posted / bhaskar sarma
Input = Array(6,6,6,7,6,75,78,75,75,6,66,6.6)
count = 0
arr = ","
for Bye =0 to ubound(input)-1 step 1
for Hello=Bye+1 to ubound(input) step 1
if strcomp(Input(Bye),Input(Hello),1)=0 AND instr(1,arr,Input(Hello))<=0 then
count = count + 1
arr = input(Hello) & ","
exit for
end if
next
next
msgbox count
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When to use descriptive programming?
Can we use index on view?
Is it possible to split an action? How?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What is the extension of the qtp local repository?
Hi,All How to create a link in excel sheet using qtp
How you calling actions in qtp?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
banking project description for software tester
what is test scheduleling?
Where you get the run time data table?
Why script error occur in between recording in qtp?
What is the extension of qtp local repository?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What is the significance of “action 0” in qtp?