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 to increase the values in text box in a given text box increament by two values by clicking on button
What's the difference between vbscript and vb.net?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
How will you get the exponent of the given number in vbscript?
What is the use of option explicit statement?
How regexp.execute method works?
What is vbscript?
What are events in the vbscript language?
What are lbound and ubound in the vbscript language?
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
What are string functions in vbscript?
How to replace junk code recorded by QTP with a mall function.
what is event handling?
Which constant is used for print and display functions and works as same as pressing enter key?
Explain vbscript in detail?