steve4king
14 years agoOccasional Contributor
Bug/Error clicking a cell/field in a Delphi grid
I've got a grid which may have one record and it may have three thousand.
I need to be able to select the last value from the 7th column.
Both of these work fine and I'm able to pull the row/column count.
Aliases["ofcstar"]["TimeClock"]["Grid1"]["RowCount"]
Aliases["ofcstar"]["TimeClock"]["Grid1"]["ColCount"]
However, I'm unable to actually select the cell.
(To simplify I hardcoded the numbers, so my code snippet is exactly this:
Aliases["ofcstar"]["TimeClock"]["Grid1"]["ClickCell"](26,6)
When I execute I see this Error:
"An Error has Occurred"
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete.
Technical information:
97 0x80020006 (Unknown name.) FRowCount.
Aliases["ofcstar"]["TimeClock"]["Grid1"]
(Sys["Process"]("ofcstar")["VCLObject"]("TimeClock")["VCLObject"]("Grid1"))
(on a different note.. can I set the default to period(.) rather than brackets/quotes? So much harder to read after it converts it that way)
I need to be able to select the last value from the 7th column.
Both of these work fine and I'm able to pull the row/column count.
Aliases["ofcstar"]["TimeClock"]["Grid1"]["RowCount"]
Aliases["ofcstar"]["TimeClock"]["Grid1"]["ColCount"]
However, I'm unable to actually select the cell.
(To simplify I hardcoded the numbers, so my code snippet is exactly this:
Aliases["ofcstar"]["TimeClock"]["Grid1"]["ClickCell"](26,6)
When I execute I see this Error:
"An Error has Occurred"
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete.
Technical information:
97 0x80020006 (Unknown name.) FRowCount.
Aliases["ofcstar"]["TimeClock"]["Grid1"]
(Sys["Process"]("ofcstar")["VCLObject"]("TimeClock")["VCLObject"]("Grid1"))
(on a different note.. can I set the default to period(.) rather than brackets/quotes? So much harder to read after it converts it that way)