Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reccount to NOT count deleted records?
Message
 
À
24/10/1999 21:43:37
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00280726
Message ID:
00280771
Vues:
10
>I need a screen that shows the # of records in certain files for the client to be able to bring up. Is there a way to get RECCOUNT to NOT include the DELETED records prior to a PACK?
>
>Thanks

Peter,
You can do a SQL SELECT statement to do this.

Either
SELECT COUNT(*) AS RecCnt INTO CURSOR Dummy
Dummy.RecCnt will have the count

or
SELECT somefield INTO CURSOR Dummy
and check the value of _TALLY

Both these assume DELETED ON. If you don't have it ON you will need to add a where clause to exclude deleted records
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform