Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i ensure that displayed values are in ascending order in a web page
#2
Solved: 12 Years, 10 Months, 2 Weeks ago
as said
(07-31-2009, 10:23 AM)venkatbatchu Wrote: Note: I could able to retrieve all the fields in to variables here main issue is how to validate that all fields are in ascending order

get all this into an array variable
and using following function you can determine whether they are in ascending order.
Code:
Function IsAscending(sArray)
'Assign default value of IsAscending
IsAscending = true
For i= 0 to UBound(sArray) - 1
If sArray(i) > sArray(i+1) Then
'Return value of IsAscending
IsAscending = false
exit for
End If
Next
End Function

This function will return true if array is in ascending order.
hope this will help you

Reply


Messages In This Thread
RE: How do i ensure that displayed values are in ascending order in a web page - by Saket - 07-31-2009, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web page not loading for EBS application when open UFT satyagadam 1 2,237 09-18-2019, 02:30 AM
Last Post: satyagadam
  Facing a problem while identifying Angular JS objects in a web page vangasantosh 0 1,485 12-20-2017, 01:26 PM
Last Post: vangasantosh
  capturing message on web page when caps lock is on helan 0 2,682 04-29-2015, 05:25 AM
Last Post: helan
  IE 11 has stopped working is displayed while running UFT 12 iahmad 0 2,215 04-06-2015, 06:44 PM
Last Post: iahmad
  qtp 11, Unable to prove the disappearance ofdynamic objects displayed on same screen. priyaang 1 2,833 03-24-2014, 12:53 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)