Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if a table has no nondeleted records (empty)
Message
De
04/09/1998 09:38:13
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
04/09/1998 09:35:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00132456
Message ID:
00133241
Vues:
12
>>>>>>>>how is an efficient way to tell if a table has no active records.
>>>>>>>>
>>>>>>>>thanks, brenda
>>>>>>>
>>>>>>>SET DELETED ON
>>>>>>>COUNT TO nTotal
>>>>>>>IF nTotal=0
>>>>>>>...
>>>>>>You should have and index tag on DELETED(), example...
>>>>>>INDEX ON DELETED() TAG ISDELETED
>>>>>>Having this will greatly increase performance if you have SET DELETED ON in your app.
>>>>>>
>>>>>>Assuming you have done this, you could...
>>>>>>
>>>>>>found_deleted=SEEK(.T.,'yourtable','ISDELETED')
>>>>>>
>>>>>>or conversely...
>>>>>>found_active=SEEK(.F.,'yourtable','ISDELETED')
>>>>>>
>>>>>>//:^)
>>>>>
>>>>>Larry, do you really assume that I don't use/know about DELETED() tag?
>>>>I know that you would, but you didnt post the original message.
>>>>//:^)
>>>
>>>Why should I post original message? And BTW everything is still here, nothing was cut off.
>>
>>I meant to say that I was responding to Brenda's message.
>
>You know, I understood this, so if you reply to particular person why not to do it right, i.e. really reply to particular person?
OKAY! OKAY! UNCLE! UNCLE! I got your point two messages ago!
//:^)
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform