Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Query: How do i determine if I am on the last row
Message
From
29/02/2012 05:27:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grid Query: How do i determine if I am on the last row
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01536814
Message ID:
01536814
Views:
79
I have a form parent-child form with a grid on it for the invoice detail lines. When I am in the last column of the grid I check in the KET PRESS event if the user hit the enter key. If the user hits the enter key I issue the skip command and move the the record pointer to the next record of the detail line for the current header record.

When I am on the last record (invoice line) I want to add a new record the to the grid when the user hits the enter key. How can I determine if I am on the last record for the current invoice so that know if must add a new record. I cant use EOF as the record might not be the actually last record in the table.

Is there away to get around this.

Thanks in advance.

Regards,

Stuart
Stuart Reid

True nobility lies not in being superior to another man, but in being superior to one’s previous self
Next
Reply
Map
View

Click here to load this message in the networking platform