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 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is it possible to add sheets to excel at runtime

3233


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1428


how will load the object during runtime?

1579


How is a Step generator used in UFT?

656


What contains Data Driven Framework document in qtp?

1463






Explain quicktest professional testing process?

563


What are the different ways to invoke an application using QTP?

642


What are the different types of action?

555


Why bpt?

591


how to test load test and block box testing an a web based application pls give ans briefly

1354


Explain how qtp identifies object?

609


what is meant by Implicit and explicit requirements?

3619


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1507


How does qtp identify the object in the application?

533


How to test results for qtp ?

783