Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count to
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01272696
Message ID:
01272701
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform