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 |
How to return a value from function...? you should not tell msgbox, print.. etc.,
How many types of procedures are available in the vbscript language?
write a vb-script code to delete all the mails in my gmail in the year 2011
What is the output of a + b in vbscript if a = 5 and b = 10?
what is the use of Data base check point ?
Explain the string concatenation function in vbscript?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
What are class properties?
write a vbscrpit to swap values
How will you get the last occurrence of one string within another string using vbscript?
how to check whether link is disabled in QTP??
what is the function to display current date?