Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids - How to get a BeforeRowChange Event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00210515
Message ID:
00210520
Vues:
28
>Hi all,
>
>I've seen this floating around with grids before, and now I'm kind of stuck as I can't remember ! I am hoping someone can breifly describe or send me an example of how to modify the grid base class so it will fire a before row change event before the skip to the next record causes an automatic save. I need to put some code to validate the record and perform some other processing. I am using VFP 5.0
>
>thanks
>bob horkay

Are you describing that you have your own base class ex: "MyGrid" and you want all your forms to point to that class instead of the VFP Native Class?

If not, you can just double click anywhere on the grid and then select the "BeforeRowColChange" method. You can perform any pre-validation checking here. Also, if validation fails, and you want to keep the person on this record, just issue a NODEFAULT to prevent the record from skipping/losing focus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform