Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Number of Grid Rows
Message
From
25/09/1997 19:26:43
 
 
To
25/09/1997 02:26:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00051443
Message ID:
00051697
Views:
36
>>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
Map
View

Click here to load this message in the networking platform