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
Why is the use of exit do or exit for statements within loops discouraged?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
Explain few date functions in vbscript?
How to Import data from a file (file is on the desktop) to the data table
Explain about the support of asp for vb script functionality?
Why is it recommended to close the database connection every time after the work is completed?
What is the use of the date function in the vbscript language?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
How to assign a date value to a variable?
how to acces the remote mechine using vb cript(QTP)
What are the rules to name variable in vbscript?
What are string functions in vbscript?
Mention what if you do not specify anything when you call a procedure?
how to write validation function for date in vb script
about vb scripting programs this type of all question& answers