Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why reccount() and _tally are different ?
Message
 
To
06/05/1998 17:39:40
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00097511
Message ID:
00097826
Views:
33
Francois,

Let's cut to the chase here, you are running around a tree. The SELECT statement will query a table or a group of tables and produce a result set. When you use the SELECT command the only DEPENDABLE way to know the number of records in the result is _TALLY. That's it, no more confussion, simple. FORGET RECCOUNT() when SELECT is involved. Don't use it, ever, for nothing, not, never, no, ok?

So if you see SELECT you use _TALLY if you see no SELECT you can use RECCOUNT().
 SELECT * FROM Whatever ...
 _TALLY


 USE MyDbf
 ? RECCOUNT() && unless you are concerned about not counting deleted records
              && then use
 COUNT FOR NOT DELETED() TO Howmany
 ?Howmany
Previous
Reply
Map
View

Click here to load this message in the networking platform