Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Know what record I am on
Message
De
12/10/1998 11:31:48
 
 
À
12/10/1998 06:49:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00145857
Message ID:
00145918
Vues:
36
>How can I tell if I am at the top or bottom of a table that is using an index? Ie the record number of the top most record won't be 1 as it is ordered.
>
>I am trying to code my navigate buttons and want the "Top" button to be disabled when I am at the top of the table with an index set or without.
>
>Thanks

lnRecNo = RECNO()
GO TOP
IF RECNO() = lnRecNo
* At top
ENDIF
GO BOTTOM
IF RECNO() = lnRecNp
* At bottom
ENDIF
GOTO lnRecNo
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform