Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control Data Entry
Message
De
13/05/1997 11:17:46
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
13/05/1997 10:35:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00031937
Message ID:
00031963
Vues:
41
>I have data entry taking place in a grid control. How can I best create a new record (i.e., line on the grid) so that the user doesn't have to keep punching an Add Item button every time? Do I have to TABLEUPDATE() the completed record? What is the best way to automate the INSERT INTO for the new record? Finally, is it OK to use the VALIDATE event to TABLEREVERT the new record when the user doesn't want it??
>
>TIA.
>
>John

One suggestion is you can use a specify key say ctrl+n which when pressed will call a user define method/procedure to add a record.

that key you can set through on key label in the when event of grid and can reset it in valid event.

as far as tableupdate/revert are concerned, best way is to use command buttons like add, edit, when either of these are clicked, 2 buttons save and cancel becomes enable allowing the user to save or cancel the record.

hope this helps !!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform