Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help to Add record in Grid
Message
De
09/08/1999 12:45:01
 
 
À
09/08/1999 12:12:07
Amit Abhangrao
Charmi Software Exports
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00251549
Message ID:
00251573
Vues:
11
>Hello Friends,
>
> I am using a grid for my data entry programs, but i am facing a big problem of how to add record into that. What could be the best method to add record?
>
> First i thought of On Key Label XXX Do AddRecord
> But i feel with this code, i might face problems while i am moving from one form to another,
>
> I then thought for Down Arrow to add record. But how to validate full record in down key pressing. How i can write the code for that?
>
> Is there any other solution for adding records in grid?
>
>Regards
>Amit

First, IMO grids are not good controls for adding/editing data, only presenting existing data to the user. Then add buttons to the form to "Add" or "Edit" the data. These buttons would display a second data entry/editing form for the user to enter/edit the data.

In your case you could still add an "Add" button ( or menu option ) to the form which would insert a record into the table and allow the user to enter the necessary data.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform