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

By using QTP can we record any log files written by the application which is in execution?

1581


Explain different types of checkpoints?

658


Explain the types of object repositorys in qtp?

659


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

5673


Explain how qtp identifies objects?

662






How will you check a web application for broken links using qtp?

643


Is the qtp course will help to create a virtual object?

1612


How the exception handling can be done using quicktest professional (qtp)?

657


What are the advantages of qtp?

666


Explain the concept of object repository and how QTP recognizes objects?

637


unique properties of button,edit box, radio button,check box?

3962


explain structured testing? plz guys with exp. do answer

1512


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

1700


How do we analyze the checkpoint results?

683


distinguish between old version and new version QTP features.

1971