Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of records on a filtered table
Message
 
 
À
15/09/2008 20:56:04
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01347777
Message ID:
01347779
Vues:
9
>I have a table that has a filter. If no records satisfy the filter, how can I tell? The RecCount() shows the number in the table, not just those in the filtered result. I need to know if the filtered result is empty.
SELECT mytable
COUNT
IF _TALLY = 0
  * No records match the filter
ENDIF

* Or

SELECT mytable
LOCATE
IF EOF()
  * No records match the filter
ENDIF
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform