Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
# rows in a grid
Message
From
26/11/1996 15:12:51
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00013224
Message ID:
00013593
Views:
36
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform