Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
# rows in a grid
Message
De
25/11/1996 15:12:31
 
 
À
25/11/1996 13:37:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00013224
Message ID:
00013441
Vues:
35
>>>Is there a way to determine the number of rows currently in a grid control?
>>>
>>>I need to determine if i'm on the last row of the grid.
>>>
>>>TIA, Kim
>>
>>You can check eof() of your RecordSource in AfterRowColumnChange event.
>
>TRUE, but only if the underlying table in question is not filtered.
>
>Using a grid with a LinkMaster shows only child records related to the parent table. The active row of the grid may be the last row of this relation but not the EOF() of the related child table.

So, check not only for eof(), but also for Filter/Relation Expression:
Skip 1
if eof() or ChildTable.Field...<>RelExpr
&& this is 'last row'
endif
skip
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform