Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete records in grid and compute total
Message
De
30/09/2004 12:11:54
 
 
À
30/09/2004 01:42:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00947104
Message ID:
00947556
Vues:
34
if i delete 1 records or more ,how i can resort number of records at mygrid.

You mean you want to display the number of records in the table that are not deleted?

If so:
lnRecNo = IIF( NOT EOF( < grid.recordsource > ) AND NOT BOF( < grid.recordsource > ), RECNO( < grid.recordsource > ), 0 )
SELECT < grid.RecordSource >
COUNT TO lnRecCount FOR NOT DELETED()
IF lnRecNo # 0
  GO lnRecNo 
ELSE
  GO TOP
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform