Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding not wanted records
Message
De
02/07/2000 13:09:37
 
 
À
02/07/2000 08:43:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00387527
Message ID:
00387560
Vues:
15
>I have this grid with the AllowAddNew prop set to .f.. By means of a button I set AllowAddNew to .t., Append blank and add the first field which is a memory variable. After the record is completed, if the user presses the down arrow, a new record is added, wether you want it or not. What would be correct way of avoid adding a new record if it is not wanted, or delete the record by simply pressing the up arrow, for example, if a new record is not wanted?

Leave AllowAddNew off, because even with it off, you can still APPEND BLANK to the table. AllowAddNew is to let you automatically Add a new record if you press the down key on the last record, which it sounds like you don't want.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform