Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not counting deleted records
Message
De
10/05/2007 15:23:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01223920
Message ID:
01224331
Vues:
22
Mark -

You could also use
COUNT TO nRecords FOR NOT DELETED()
>first part did it
>thanks
>~M
>
>>COUNT or SELECT-SQL.
>>
>>set deleted on
>>count to nRecords
>>
>>or
>>
>>set deleted on
>>select count(*) from myTable into array laCounts
>>?laCounts[1]
>>
>>The difference is that the first will count the current table state and the second only commited changes (from the table on disk, unless you use WITH BUFFERING option).
>>
>>>hi all,
>>>I want to initialise some setting in a program depending on record in a dbf file. i was thinking of
>>>
>>>use table1
>>>if reccount() > 0
>>>...
>>>
>>>the only problem is that this table could have a deleted record, very hard to use excl and pack and i want reccount() to only work with non-deleted records, is there a way to do this?
>>>~M
Carsten M. Thode
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform