01-28-2024, 07:51 PM
Hi Gintaras!
Long time QM user, first time posting.
a while back (2006?) you provided a QM Acc function to iterate through a .NET datagrid even when row and/or cell was not visible on screen. the function name is Acc.GetNetDataGridCell.
https://www.libreautomate.com/forum/show...taGridCell
trying to do the same but in LibreAutomate.
LibreAutomate it can capture all rows but it errors out when it reaches the row that is not visible unless the scrollbar pages down. it returns a null variable when it reaches the row.
can you help converting the QM function to LibreAutomate?
Member function Acc.GetNetDataGridCell
Long time QM user, first time posting.
a while back (2006?) you provided a QM Acc function to iterate through a .NET datagrid even when row and/or cell was not visible on screen. the function name is Acc.GetNetDataGridCell.
https://www.libreautomate.com/forum/show...taGridCell
trying to do the same but in LibreAutomate.
LibreAutomate it can capture all rows but it errors out when it reaches the row that is not visible unless the scrollbar pages down. it returns a null variable when it reaches the row.
can you help converting the QM function to LibreAutomate?
Member function Acc.GetNetDataGridCell
function# nColumns [row] [col] [Acc&ac]
;Retrieves accessible object for specified cell in NET data grid.
;This object must be data grid. You can call this function multiple times with it.
;Returns the number of used rows.
;nColumns is the number of columns in the grid.
;row and col are 1-based row and column indexes.
;EXAMPLE
;Acc aGrid=acc("DataGrid" "TABLE" win("Customer Details" "WindowsForms10.Window.8.app4") "WindowsForms10.Window.8.app4" "" 0x1001)
;Acc aCell
;int i
;for i 0 aGrid.GetNetDataGridCell(11)
,;aGrid.GetNetDataGridCell(11 i+1 1 aCell)
,;out aCell.Value
,;;aCell.SetValue("new value")
int n=a.ChildCount-nColumns-2
if(&ac)
,if(row>n) end "row too big"
,str s.format("child%i child%i" row+nColumns+1 col)
,;out s
,;out &ac
,Navigate(s ac)
,
ret n
err+ end _error