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...


1)How to test whether items in a weblist are in alphabetical
order or not?



1)How to test whether items in a weblist are in alphabetical order or not? ..

Answer / vikas choubey

For i=0 to Ubound(arrCtry)
If arrCtry(i)<>"--Choose One--" Then
objArray.Add(arrCtry(i))
End If
Next

objArray.Sort()

objArray.Insert 0,"--Choose One--"

For j=0 to Ubound(arrCtry)
strOuput=strOuput+objArray(j)
strOuput=strOuput+";"
Next


If
strOuput=Browser("name:=QTP").Page("title:=QTP").WebList("name:=select1").GetROProperty("all
items")+";" Then
Msgbox "The Weblist's values are sorted in alphabetical order"
Else
Msgbox "The Weblist's values are not sorted in alphabetical
order"
End If

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More VB Script Interview Questions

How to return a value from function...? you should not tell msgbox, print.. etc.,

6 Answers  


How many types of procedures are available in the vbscript language?

0 Answers  


write a vb-script code to delete all the mails in my gmail in the year 2011

1 Answers  


What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


what is the use of Data base check point ?

3 Answers  


Explain the string concatenation function in vbscript?

0 Answers  


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

0 Answers  


What are class properties?

0 Answers  


write a vbscrpit to swap values

2 Answers   Adani,


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


how to check whether link is disabled in QTP??

0 Answers  


what is the function to display current date?

4 Answers  


Categories