Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete records in grid and compute total
Message
From
30/09/2004 12:11:54
 
 
To
30/09/2004 01:42:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00947104
Message ID:
00947556
Views:
35
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform