General information
Category:
Coding, syntax & commands
>>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
You don't need the FOR clause if you SET DELETED ON.
Vlad
Previous
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