Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
# rows in a grid
Message
De
26/11/1996 15:12:51
 
 
À
26/11/1996 13:47:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00013224
Message ID:
00013593
Vues:
40
Kim, try creating a property to hold the current ActiveRow value in the AfterRowColChange Event Test this property against the new ActiveRow value. If it increased call the method from your NAV buttons that checks for conditions for enabling/disabling its Next/End command buttons. If It decreased call your method from you NAV buttons that check s for conditions for enabling/disabling its Top/Prev command buttons. I use code like this.

This code doesn't care about filters or indexing in my applications.
***Sample code from my Next Command Button

SKIP 2 && Try to go past EOF()
IF EOF()
Go Bottom
This.Parent.cmdEnd.enabled = .F.
This.Parent.cmdNext.enabled = .F.
ELSE
SKIP -1 && Actually where you want to be
ENDIF

WITH This.Parent && Ensure other nav buttons are enabled
.cmdTop.enabled = .T.
.cmdPrev.enabled = .T.
EndWith
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net

If at first you don't succeed, then skydiving definitely isn't for you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform