Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reinventing the Wheel
Message
De
13/11/1999 22:25:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00289820
Message ID:
00291051
Vues:
22
>Also is there an easy way to display what record you are on out of how many? The problem I have is reccount() does not consider deleted records and gives an inaccurate total count. Also it would be nice if the current record is numbered by it position in the current order.

There is a way to solve both of these issues in one pass ... USE VIEWS.

When you access data by views ... a new event basic recno is generated for all records at the time the view fires. This will give you recno() in order AND reccount() will show a count of only the records actually loaded into the view.

If set deleteted is also on then no deleted records will even be registed as existing for the view.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform