Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
# rows in a grid
Message
From
26/11/1996 13:47:20
 
 
To
26/11/1996 10:58:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00013224
Message ID:
00013571
Views:
35
>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
Map
View

Click here to load this message in the networking platform