Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding records to view in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00235544
Message ID:
00235547
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform