Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a new record in Grid
Message
 
À
20/10/1998 11:59:04
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00148288
Message ID:
00148574
Vues:
17
Thanks for the reply Nancy. After sending the question I kept looking and decided on the AfterRowColumnChange. In this event I check to see if certain key fields are empty. If so, it's a new record and I do my extra processing. When saving I just remove added records that were left blank.

>Hi, Colin.
>
>We need on OnAddNew method, methinks < s >. I think that you could make use of afterrowcolchange--if you're using buffering then the recno will be negative. Of course, this begs the issue of several records being added...I think I just prefer to keep adding records to grids under tighter control. For example, I usually check to make sure the user _really_ wants to add a new record (it's the nature of my apps and what the users asked for, so no flames, please).
>
>>Is there any way to trap that this has occurred? While this functionality is simple and very usefull, I need to have various other things happen when the new record is added. TIA
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform