I have some code from Marco Cantu's Book "Mastering Delphi 6" which supposedly steps through a grid. But I get an exception at point A (below)which I don't understand.
I might mention that my grid is named "grdPacks" and it is on a form named "Form1" and "i" has been declared as an Integer.
begin
// refresh visible rows in the grdPacks
IBdtsPacks.DisableControls;
// start with the current row
i := TMyGrid(grdPacks).Row; ................A
bm := IBdtsPacks.Bookmark;
I get a "Missing Operator or semicolon" exception between the "(" and the "g" in "grd" in line A above.
Meanwhile I can't find any reference to "TMyGrid" anywhere prior to that in Marco's code either. So jhave no idea what
"TMyGrid" is supposed to be.
Does anyone have any idea what the problem is?
I might mention that my grid is named "grdPacks" and it is on a form named "Form1" and "i" has been declared as an Integer.
begin
// refresh visible rows in the grdPacks
IBdtsPacks.DisableControls;
// start with the current row
i := TMyGrid(grdPacks).Row; ................A
bm := IBdtsPacks.Bookmark;
I get a "Missing Operator or semicolon" exception between the "(" and the "g" in "grd" in line A above.
Meanwhile I can't find any reference to "TMyGrid" anywhere prior to that in Marco's code either. So jhave no idea what
"TMyGrid" is supposed to be.
Does anyone have any idea what the problem is?