1)How to test whether items in a weblist are in alphabetical
order or not?
Answer Posted / 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 View All Answers
How do you declare a variable in vbscript?
What is the difference between VBScript and JavaScript?
How to throw an error in vbscript?
Which object provide information about a single runtime error in a vbscript?
Illustrate briefly about the different types of statement
How will you reverse a string in vbscript?
What is vbscript?
Explain sga memory structures?
Mention what are the rules to name variable in vbscript?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
What is purpose of scripting.filesystemobject class in vbscript?
How will you get the octal value of the given number in vbscript?
Explain the filter expression?
How will you get a subset of a array in vbscript?
Description.Create