Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding records to view in grid
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00235544
Message ID:
00235547
Views:
20
>I am trying to set up a grid based on a view for data entry. When the user is on the last record of the view, they should be able to press the Enter key and create a new record. Any suggestions?

Grid.AllowAddNew=.t. will do it for "DownArrow" key, so the only addition would be intercepting Keycode=13 and stuffing Keycode=24 in Grid.Column.Control.KeyPress events. This code should also check that this is the last record, e.g. by checking Recno() (I guess the last thing can be done easier for cursor).
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform