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
What are the types of environment variables in qtp?
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 are test settings and global settings?
What are some test assets and related extensions of qtp?
What are the key elements available in test result window?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
What is 'sleep' in sync point?
What is ObjectParamater?
What are the views available in quicktest professional?
What phases are involved in testing an application in qtp?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
Through array we can execute the testcase how ? give me example
What is optional step in qtp? How you can add optional step in qtp?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
How will you report the bug and explain the defect tracking sheet you handled?