Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement