Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Number of Grid Rows
Message
De
25/09/1997 19:26:43
 
 
À
25/09/1997 02:26:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00051443
Message ID:
00051697
Vues:
41
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform