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


Please Help Members By Posting Answers For Below Questions

Why is the use of exit do or exit for statements within loops discouraged?

650


Out of the different type of operators, which are evaluated first and last in the vbscript language?

666


Explain few date functions in vbscript?

698


How to Import data from a file (file is on the desktop) to the data table

1673


Explain about the support of asp for vb script functionality?

613






Why is it recommended to close the database connection every time after the work is completed?

596


What is the use of the date function in the vbscript language?

668


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1905


How to assign a date value to a variable?

677


how to acces the remote mechine using vb cript(QTP)

1677


What are the rules to name variable in vbscript?

670


What are string functions in vbscript?

732


Mention what if you do not specify anything when you call a procedure?

655


how to write validation function for date in vb script

2220


about vb scripting programs this type of all question& answers

1786