Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How i know if my table have records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00033885
Message ID:
00034002
Vues:
38
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform