Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of records in Grid
Message
De
04/03/2008 16:09:00
 
 
À
04/03/2008 15:46:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01298593
Message ID:
01298657
Vues:
17
>>>I need to know how many records are in the grid. I'm getting odd results on a filtered table that populates the grid so I want to know if there is a way to look at the grid itself and know at runtime. Thanks!
>>
>>If you populate the grid via some SQL select statement, you can use _tally instead of reccount().
>
>Wouldn't _TALLY and RECCOUNT() give the same results?

No, not if the resulting cursor is not a real cursor, but only a filtered table.
Try this
Select * from sometable where somecondition into cursor curdummy && somecondition must be optimizable
?reccount() && Shows the number of records in sometable
?_tally && Shows the number of selected records
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform