Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count to
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01272696
Message ID:
01272701
Vues:
15
>What if I only want to check if the table is empty ?

If you haven't deleted records.
? RECCOUNT() &&& return 0 if the table is empty
If you have deleted records
SELECT COUNT(*) AS Cnt FROM Yourtable WITH (BUFFERING = .t.) WHERE NOT DELETED() INTO Cursor crsTest
IF crsTest.Cnt = 0
   MESSAGEBOX([the table is empty])
ENDIF
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform