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

Mention what is the technology used by vb script?

0 Answers  


wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me

2 Answers  


write a vb script to display calculator using case statement?

1 Answers  


Is vbscript a case-sensitive or case-insensitive?

0 Answers  


Which object provide information about a single runtime error in a vbscript?

0 Answers  






In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

0 Answers   Nous,


how to write function to validate the number of characters entering into the text box?

2 Answers   TCS,


Input = 124 output should be 124421 Please do not use any string functions/variables

8 Answers   Cap Gemini,


write a vb script create 5 folders test1 test2 test3 test4 test5

3 Answers  


If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....

3 Answers  


Which operator can be used to change the value of the operand or change the state of the condition?

0 Answers  


How to get the length of the string by making use of the string function?

0 Answers  


Categories