2010-05-12 334 views

回答

0

只是發現了 - 我們必須使用sReport方法來訪問particulat柱元件 例如:

sReport = sReport & .GetSubItem("123", 2) & vbCr 

其中 「123」 是S.No.它將通過S.No.訪問第三列。 =「123」 sReport應該通過With Objectname來訪問

0

sReport不需要獲取數據。這僅用於報告目的。 相反,你也可以嘗試下面。

Var = Window().WinlistView().GetSubItem (Row, Col) 
Where row => you can get by using the GetItem in a loop 
and Col => you can get by using GetColumnHeader 

有關更多詳細信息,請轉到QTP幫助和搜索GetSubItem,然後單擊示例Implementation。