Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First or last record - is there a way to determine?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
First or last record - is there a way to determine?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01021609
Message ID:
01021609
Views:
67
Hi everybody,

I have a navigation toolbar and I also have a grid.

In grid's AfterRowColChange I have:
LPARAMETERS nColIndex
DODEFAULT(m.nColIndex)
IF VARTYPE(thisform.oToolbar) = "O"
	thisform.lBOF = BOF("v_investigatorqueue")
	thisform.lEOF = EOF("v_investigatorqueue")
	thisform.oToolbar.cntNavButtons.Refresh("","v_investigatorqueue")
endif	
Now, the problem is with when I go to the first or last record using keyboard. If I'm using navigation buttons, the buttons on the toolbar are disabled properly. But in case of the keyboard I have a problem. In the button's click there is a call to a method which basically does additional skip back and forth to determine the status correctly. I'm wondering, is there a way to achive similar functionality without using this technique?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform