Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to capture data from winlist.
#2
Solved: 12 Years, 10 Months, 2 Weeks ago
Code:
Rcount=Window("Flight Reservation").Dialog("FlightsTable").WinList("From").getroproperty("itemscount")
msgbox Rcount
Dim x
ReDim x(Rcount)
For i=0 to RCount-1
    Text=Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetItem(i)
        x(i)=Text
Next

The above code will help u to get the data from winlist view to an array.
now u can use regular expressions to filter the data as per your requirement
to find the cheapest flight use right() function and move the values into another array and compare the values of the array
Reply


Messages In This Thread
RE: How to capture data from winlist. - by sree.85 - 08-03-2012, 12:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  WinList Behavior marse91782 0 3,224 11-24-2016, 06:32 AM
Last Post: marse91782
  Grid identified as WinList anushachanda 4 5,496 09-12-2012, 12:04 PM
Last Post: anushachanda
  QTP doesn't identify the Objects which are in WinList Sushanth 0 4,774 08-13-2012, 04:20 PM
Last Post: Sushanth
  unable to identify Checkbox Property inside the WinList Object tech.savy987@gmail.com 2 4,925 07-20-2012, 10:18 AM
Last Post: Shridevi.Salagare
  How to capture/parameterize ID's created on the server side that QTP does not capture rdwaram 1 3,264 10-17-2009, 02:37 AM
Last Post: jsknight1969

Forum Jump:


Users browsing this thread: 1 Guest(s)