>A client wants me to display "x of y" on a window caption, where x is the number of the active row of the grid on the form, and y is the total number of rows in a grid. I see the ColumnCount property, but I don't see a RowCount property. (No great surprise.) Does anyone know an easy way at this?
>
>Steve
Hi Steve
Use Grid.ActiveRow to show the current row/record in the grid.
Use RECCOUNT() to show the total number of records in your grid IF YOU DON'T CARE ABOUT DELETED RECORDS. If you have deleted records in your table that you don't want to show, you have to SET DELETED ON and then use COUNT TO
FOR NOT DELETED to get the actual number of records that will be displayed in your grid.
Benn
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"