Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After/BeforeRowColChange
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00184929
Message ID:
00184954
Views:
20
John, the record number doesn't change until after the BeforeRowColumnChange fires if you're switching rows, so a simple property won't work if you want to validate before using the row.

Kenneth, since you DO know if the record number is changed in the AfterRowColumnChange method, you could use table buffering in the grid and then IF you've changed rows implement your validation/save code on the row you just left. John's custom property will work well for this. The table buffering will keep the contents of eachh row buffered even if you move to another record number. Then you can call your own validation.

HTH
Barbara

>
>Why not create a custom property that tracks the Record Number. When the event fires, if you record number property = Recno(), you merely changed columns and therefore, do not want to fire the validation. If on the otherhand, they don't equal, you will want to update the property and run your validation.
>
>If you use row buffering along with table rules, you could avoid coding in the grid...
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform