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

write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********

1 Answers  


Which operator is used to concatenate the 2 values in the vbscript language?

0 Answers  


what is the function to display current date?

4 Answers  


Differentiate javascript and vbscript?

0 Answers  


Mention how to assign a date value to a variable?

0 Answers  






What is the scope of a constant declared using public?

0 Answers  


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

0 Answers  


What is vbscript language used for and which earlier language is it modeled upon?

0 Answers  


How do display output message without using msgbox function?

5 Answers  


What are the different types of loops available in the vbscript language?

0 Answers  


How to take whole text output from screen of Bitmap Application.

0 Answers   CitiGroup,


Explain about adodb.stream class?

0 Answers  


Categories