Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does one step through a grid.

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top