Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell when a filter results in 0 records
Message
De
23/08/2004 06:16:28
 
 
À
23/08/2004 06:12:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00935481
Message ID:
00935487
Vues:
23
Hi Gregory,

with a big table and the correct index, the difference can be enormous. GO TOP can take minutes, LOCATE takes a few microseconds.

>>>>Hi
>>>>
>>>>Is there any way to tell if a filter results in 0 records?
>>>>
>>>>Thanks
>>>>
>>>>Colin
>>>
>>>Something like
>>>
>>>&& after filter
>>>go top in AliasName
>>>
>>>ZeroRecords = eof('AliasName')
>>>
>>
>>I think 'locate' would be better as it's Rushmore optimizable.
>>Cetin
>
>Yeah, perhaps. I've never done any test, so I don't know how much of a difference there's involved
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform