Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write vb script code to delete the duplicate values in an
array.

Answer Posted / saket bharti

aList=Array(5,5,5,5,12,10,15,10,125,5,1,1,2,3,4,5,6,7,8,8,8,8,8,8,8)

ReDim newArray(UBound(aList))

count=1

newArray(0)=aList(0)

for i=0 to UBound(aList)

temp=aList(i)

flag=0

for j=0 to UBound(newArray)

if ( newArray(j)=temp) Then

flag=1

End if

Next

if flag=0 then

newArray(count)=temp

count=count+1

End If

Next

ReDim Preserve newArray(count)


for j=0 to UBound(newArray)-1

msgbox newArray(j)

Next

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recovery scenario manager? When you go for recovery scenario manager?

992


What is the architecture of your project? Can any one answer for this question plz........

1825


What is a data driven test in qtp?

957


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

1030


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

1203


What are the different kinds of test steps?

1016


Tell me one scenario, the complex functionality you have automated in your project?

1923


How do Parameterization and Data-Driving relate to each other in QTP?

1009


In what occasion we can specify global sheet and action sheet?

978


what could go wrong with test automation?

1998


How many ways we can parameterize data in quicktest professional?

970


banking project description for software tester

7421


How to test the login page in different ways in automation testing and i need code?

1887


when a test case is written how u test using qtp

2075


How to use parameterization in qtp?

1020