Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How i know if my table have records
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00033885
Message ID:
00034002
Views:
40
>Hello Ander!
>
>function isempty
>local lnrecno, lntop,lnBottom
>lnRecno=recno()
>Go top
>lnTop=recno()
>go bottom
>lnBottom=recno()
>on error go top
>go lnRecno
>on error
>return lntop=lnbottom
>
>HTH.
>
>Have a happy day
>Vladimir Shevchenko

Vladimir,

This code will fail with a table with one record in it by indicating that the table is empty when it is not.
Previous
Reply
Map
View

Click here to load this message in the networking platform