Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Number of Grid Rows
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00051443
Message ID:
00051447
Views:
31
>>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
>
>
>If the grid is based on a table or query, just use RECCOUT(). IF not, hopefully someone else has an answer :)

RECCOUNT() will be always available, the problem is to how to get active row number, because RECNO() will return weird values for ordered table. So, the solution might be to use pre-ordered cursor as a recordsource and RECNO() here will be 'user-friendly'.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform