Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COUNT TO
Message
From
30/06/2000 10:40:12
 
 
To
30/06/2000 10:21:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00387054
Message ID:
00387072
Views:
20
>In one deleted method I count and then go to the record selected and DELETE, but it doesn’t deleted anything. So I got rid of the COUNT and went back to RECCOUNT and all was fine again.

COUNT moves the record pointer to EOF because it looks at every record. So, either store and restore the record pointer before and after the COUNT, or use and SQL SELECT instead, checking the RECCOUNT of the result, or the better yet the _tally system variable.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform