2016-07-04 13 views
0

TestCompleteを使用して、VB6で書かれたデスクトップアプリケーションを自動化します。Testcompleteを使用してVB6でApexgridの行内容を取得するには?

WndClassを使用してApexグリッドの行内容を取得することに悩まされていますTG60.ApexGirdOleDB32.20

some information in this link ですが、それだけでは不十分です。インデックス番号の代わりにその内容に基づいて行を選択したいと思います。

誰でも助けてください。

答えて

0

選択された列と行のセルテキストを取得するために使用されるいくつかのネイティブVBオブジェクトプロパティがあります。

sub ClicktheRowUsingText(rowText, rowIndex) 
    Dim textfromCell, rowIndex, rowCount, i 
    rowCount = tgridNew.ApproxCount 
    for i=1 to rowCount-1 
     textfromCell = tgridNew.Columns.Item(0).CellText(rowIndex) 
      if textFromCell = rowText Then 
       'Call here the methods given in the above links 
       Exit for 
      End if 
    Next 
End Sub 
関連する問題