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
write a program to display configuration of a local system with the help of vb script.
How many types of operators are available in the vbscript language?
Which constant is used for print and display functions and works as same as pressing enter key?
Which data type/types are supported by vbscript language and what are their specialties?
What is the difference between VBScript and JavaScript?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
can anyone tell me the procedure of interview held in applabs
What is the use of the recordset object and which statement is used to create such an object?
when we use filter funtiom invb script(QTP)
How are comments handled in the vbscript language?
Explain a few date functions in vbscript
Explain about the functionality of vb script?
What are the special sub-types in vbscript?
How will you check that a variable is an array in vbscript?