Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetItem
#1
Not Solved
Curremntly, I have been using:

Code:
hwndZip =  Window("text:=" & ZipDialogName & ".*").GetROProperty("hwnd")
SetobjWinListView = Window("hwnd:=" & hwndZip).WinListView("nativeclass:=SysListView32", "Location:=0")
Call objWinListView.WaitProperty("visible", "true", 10000)
objWinListView.Highlight
ItemCountZip =objWinListView.GetItemsCount

Where ItemCountZip  = 1
But when I use:
Code:
For PDFCount = 0 to ItemCountZip - 1
       PDFReportName = objWinListView.GetItem(PDFCount)

I get an error the SysListView32 is not recognized.

Error Message: Cannot identify the specified item of the [ SysListView32 ] object. Confirm that the specified item is included in the object's item collection.
Line (12):
Code:
"PDFReportName = objWinListView.GetItem(PDFCount)".


I have looked this up but I have read neo answer. am i using perhaps the wrohod?

thx
Reply


Messages In This Thread
GetItem - by mv8167 - 08-28-2012, 01:17 AM
RE: GetItem - by QTPScript - 08-30-2012, 11:41 PM
RE: GetItem - by mv8167 - 08-31-2012, 12:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Operation happening while selecting "GetItem" Angel 2 5,798 01-04-2011, 01:28 PM
Last Post: rajeshwar

Forum Jump:


Users browsing this thread: 1 Guest(s)