mschlechter
11 years agoOccasional Contributor
Recognizing Grid Cell Values in a Delphi Application
Hello. I am trying to identify items in a grid for a Delphi application, but unfortunately object recognition only works for items in the Grid that accept text input. For other items that are only for display purposes, there is no individual recognition. That being the case, I figured there should be some way to recognize the entire grid as a table containing cells with values, but I am not sure how to access the values. I see built in recongnition for Row and Column count, but once I have that info and know how to setup my loop, what allows me to access the values in those cells? Thanks!
Set gObject = Aliases.whdm.MainForm.MDIClient.EditRecordForm.ClientPanel.EditPanel.EditGridPanel.Grid
rCount = gObject.RowCount
For i = 1 to rCount
'''Examine cell(i,j) contents
'''If cell contents = expected value then
success etc.
Next