write vb script code to delete the duplicate values in an
array.
Answer Posted / guest
dim a
aList=Array(5,5,5,5,12,10,15,10,125,5)
Dim sNewList
dim newArray
b= ubound(aList)
For x=0 to b
If InStr(sNewList,(aList(x) & ",")) <= 0 Then
sNewList = sNewList & aList(x) & ","
End If
Next
newArray = split(sNewList,",")
MsgBox sNewList
| Is This Answer Correct ? | 37 Yes | 11 No |
Post New Answer View All Answers
Explain how to use QTP to check broken links on a page?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
How you can replace string in qtp?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
What is the basic concept of qtp?
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
For which type of project the iterative model is suitable?
Discuss quicktest professional environment?
what is the frame work in J-meter?
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
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?
what are the mandatory properties for a tex boxc (scenario?)
Explain how qtp identifies object?
What are the differences between table and db checkpoints?