Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - How to get a BeforeRowChange Event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00210515
Message ID:
00210520
Views:
29
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform