General information
Category:
Forms & Form designer
>John: you are of course right that RECCOUNT() of a cursor will return the number of rows in the cursor. I was confused over your reference to the ActiveRow property since this specifies the row that contains the active cell in a Grid control and the ActiveRow property does not return the same value as RECNO( ) in an indexed table. I was wondering why you referenced ActiveRow at all.
Terry, Since I started this I'll explain what i'm trying to do. I've got some base classes setup, a form, a grid and a container with navigation buttons on it. I'm trying to keep all of the code in these classes and what i want to do is en/dis able the nav buttons depending upon which control of the form has focus, whether it's a grid or not. My problem arises when the grid has focus. grid.ActiveRow = 1 tells me for sure that i can disable the prev,first nav buttons. But what I'm looking for is a generic way to determine whether i'm on the last row of the grid, whether that grid is a view has a filter or whatever. For my non grid data controls RECNO, RECCOUNT, EOF do the job for me. I just wish that the grid control would have the smarts to know how many rows it had without referencing the table. As it looks now i'll have to code for last row of grid source for every instance of using my grid class.
Thanks, Kim
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only