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

Click here to load this message in the networking platform